mirror of
https://github.com/davidallendj/opaal.git
synced 2026-06-03 08:31:52 -06:00
Compare commits
9 commits
e0a8d43421
...
722ee4f40f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
722ee4f40f | ||
|
|
0fa5ec2e6a | ||
|
|
8049aaff40 | ||
|
|
93a1fea300 | ||
|
|
581aca14b8 | ||
|
|
b317c061db | ||
|
|
5541744096 | ||
|
|
8570064235 | ||
|
|
2612978a98 |
1 changed files with 3 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
r.HandleFunc("/keys", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/keys", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
p = params.AuthProvider
|
p = params.AuthProvider
|
||||||
jwks []byte
|
jwks []byte
|
||||||
|
|
@ -182,6 +183,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
w.Write(jwks)
|
w.Write(jwks)
|
||||||
})
|
})
|
||||||
r.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
@ -217,6 +219,7 @@ func (s *Server) StartLogin(clients []oauth.Client, params ServerParams) error {
|
||||||
http.Redirect(w, r, "/error", http.StatusInternalServerError)
|
http.Redirect(w, r, "/error", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
w.Write([]byte(accessToken))
|
w.Write([]byte(accessToken))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue