Allow insecure HTTP for OIDC only in local in development mode

This commit is contained in:
2024-11-04 17:24:02 +01:00
parent 8de170a009
commit 4fc08a35de
9 changed files with 140 additions and 93 deletions

View File

@@ -23,6 +23,8 @@ func (h APIHandler) OAuth2Callback(w http.ResponseWriter, r *http.Request) {
return
}
fmt.Println(rawIDToken)
_, err = h.idp.TokenVerifier.Verify(context.Background(), rawIDToken)
if err != nil {
fmt.Println("not able to verify token")