Skip to content

Commit

Permalink
fix: login and consent redirect behavior change since 1.9.x
Browse files Browse the repository at this point in the history
allow #fragment in configured url to keep backwards compatibility. Close ory#2363
  • Loading branch information
simpleway committed Apr 10, 2021
1 parent 40b09cd commit ca2b2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ func (p *Provider) fallbackURL(path string, host string, port int) *url.URL {
}

func (p *Provider) LoginURL() *url.URL {
return urlRoot(p.p.RequestURIF(KeyLoginURL, p.publicFallbackURL("oauth2/fallbacks/login")))
return urlRoot(p.p.URIF(KeyLoginURL, p.publicFallbackURL("oauth2/fallbacks/login")))
}

func (p *Provider) LogoutURL() *url.URL {
return urlRoot(p.p.RequestURIF(KeyLogoutURL, p.publicFallbackURL("oauth2/fallbacks/logout")))
}

func (p *Provider) ConsentURL() *url.URL {
return urlRoot(p.p.RequestURIF(KeyConsentURL, p.publicFallbackURL("oauth2/fallbacks/consent")))
return urlRoot(p.p.URIF(KeyConsentURL, p.publicFallbackURL("oauth2/fallbacks/consent")))
}

func (p *Provider) ErrorURL() *url.URL {
Expand Down

0 comments on commit ca2b2be

Please sign in to comment.