Changed the /token endpoint to return token as response

This commit is contained in:
David J. Allen 2024-03-25 14:51:52 -06:00
parent 32d953218b
commit 7c33b71e97
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -159,6 +159,7 @@ func (s *Server) Start(buttons string, provider *oidc.IdentityProvider, client *
http.Redirect(w, r, "/error", http.StatusInternalServerError)
return
}
w.Write([]byte(accessToken))
}
})
r.HandleFunc(s.Callback, func(w http.ResponseWriter, r *http.Request) {