Skip to content

Commit

Permalink
change rawquery to fix issue in query building
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrule committed Sep 1, 2022
1 parent 63d5c14 commit 295a372
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions consent/strategy_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,15 @@ func (s *DefaultStrategy) forwardAuthenticationRequest(w http.ResponseWriter, r

// Generate the request URL
iu := s.c.OAuth2AuthURL()
iu.RawQuery = r.URL.RawQuery

// Identify requester type
if _, ok := ar.(fosite.AuthorizeRequester); ok {
iu = s.c.OAuth2AuthURL()
} else if _, ok := ar.(*fosite.DeviceAuthorizeRequest); ok {
}
if _, ok := ar.(*fosite.DeviceAuthorizeRequest); ok {
iu = s.c.OAuth2DeviceAuthURL()
}
iu.RawQuery = r.URL.RawQuery

var idTokenHintClaims jwtgo.MapClaims
if idTokenHint := ar.GetRequestForm().Get("id_token_hint"); len(idTokenHint) > 0 {
Expand Down

0 comments on commit 295a372

Please sign in to comment.