Fixed issue with scope not being added to token

This commit is contained in:
David J. Allen 2024-03-19 15:01:47 -06:00
parent 6b2218efbd
commit fddcc8d6af
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
3 changed files with 9 additions and 4 deletions

View file

@ -122,7 +122,7 @@ func (s *Server) Login(buttons string, provider *oidc.IdentityProvider, client *
http.Redirect(w, r, "/error", http.StatusBadRequest)
return
}
_, err := client.PerformRefreshTokenGrant(provider.Endpoints.Token, refreshToken)
_, err := params.JwtBearerParams.Client.PerformRefreshTokenGrant(provider.Endpoints.Token, refreshToken)
if err != nil {
fmt.Printf("failed to perform refresh token grant: %v\n", err)
http.Redirect(w, r, "/error", http.StatusInternalServerError)