summaryrefslogtreecommitdiff
path: root/src/oidc/main.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-04-13 17:58:44 -0600
committermo khan <mo@mokhan.ca>2022-04-13 17:58:44 -0600
commitfdbe99de5987622c9133a52d53c882002c94b18d (patch)
tree69288e3dc646d692cc4b4b9609dd4a798fd922f3 /src/oidc/main.go
parent2a5f94df2062cee9257a92b53244998457f36d9d (diff)
use anonymous struct
Diffstat (limited to 'src/oidc/main.go')
-rw-r--r--src/oidc/main.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/oidc/main.go b/src/oidc/main.go
index c3d0574..9f9d71c 100644
--- a/src/oidc/main.go
+++ b/src/oidc/main.go
@@ -122,10 +122,13 @@ func handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
data, _ := ioutil.ReadFile("openid-configuration.json")
tmpl, _ := template.New("test").Parse(string(data))
- type Blah struct {
- Host string
- }
- tmpl.Execute(w, Blah{Host: "http://localhost:8282"})
+ tmpl.Execute(w, struct{ Host string }{Host: "http://localhost:8282"})
+ } else if r.URL.Path == "/userinfo" {
+ w.WriteHeader(http.StatusNotImplemented)
+ } else if r.URL.Path == "/.well-known/jwks.json" {
+ w.WriteHeader(http.StatusNotImplemented)
+ } else if r.URL.Path == "/revoke" {
+ w.WriteHeader(http.StatusNotImplemented)
} else {
w.WriteHeader(http.StatusNotFound)
fmt.Fprintf(w, "Not Found\n")