go-oauth2 / oauth2

OAuth 2.0 server library for the Go programming language.
https://pkg.go.dev/github.com/go-oauth2/oauth2/v4
MIT License
3.31k stars 563 forks source link

GetRedirectURI return sso code url err #253

Open DemoLiang opened 11 months ago

DemoLiang commented 11 months ago

if the sso url is : http://XXXX/#/sso will return redirecturi: http://XXXX/?code=ODLMMGNJYTCTNWRJMY0ZZDBKLWE0YJMTYJU0MDUWNTE5ZJM2#/sso

maybe java vue app always use this url with "#"

DemoLiang commented 11 months ago

this # is the url fragment

DemoLiang commented 11 months ago

if the url has query param http://xxxx/#/sso?key1=value1 ,the redirecturl will be:
http://xxxx/?code=XXXXXXXXX#/sso?key1=value1