mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Changed the /token endpoint to return token as response
This commit is contained in:
parent
32d953218b
commit
7c33b71e97
1 changed files with 1 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ func (s *Server) Start(buttons string, provider *oidc.IdentityProvider, client *
|
||||||
http.Redirect(w, r, "/error", http.StatusInternalServerError)
|
http.Redirect(w, r, "/error", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
w.Write([]byte(accessToken))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
r.HandleFunc(s.Callback, func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc(s.Callback, func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue