mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Changed the IDP oauth endpoints to oauth2
This commit is contained in:
parent
2edc624c01
commit
bc5e693425
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ func (s *Server) StartIdentityProvider() error {
|
||||||
http.Redirect(w, r, "/browser/login", http.StatusUnauthorized)
|
http.Redirect(w, r, "/browser/login", http.StatusUnauthorized)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
r.HandleFunc("/oauth/token", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/oauth2/token", func(w http.ResponseWriter, r *http.Request) {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
|
|
||||||
// check for authorization code and make sure it's valid
|
// check for authorization code and make sure it's valid
|
||||||
|
|
@ -247,7 +247,7 @@ func (s *Server) StartIdentityProvider() error {
|
||||||
fmt.Printf("bearer: %s\n", string(b))
|
fmt.Printf("bearer: %s\n", string(b))
|
||||||
w.Write(b)
|
w.Write(b)
|
||||||
})
|
})
|
||||||
r.HandleFunc("/oauth/authorize", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/oauth2/authorize", func(w http.ResponseWriter, r *http.Request) {
|
||||||
var (
|
var (
|
||||||
responseType = r.URL.Query().Get("response_type")
|
responseType = r.URL.Query().Get("response_type")
|
||||||
clientId = r.URL.Query().Get("client_id")
|
clientId = r.URL.Query().Get("client_id")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue