fix state handling in auth request
This commit is contained in:
parent
3c2ad6a53d
commit
2dfdaa2223
2 changed files with 7 additions and 2 deletions
|
@ -153,7 +153,11 @@ func (p *DefaultRP) AuthURL(state string, opts ...AuthURLOpt) string {
|
|||
//AuthURL is the `RelayingParty` interface implementation
|
||||
//extending the `AuthURL` method with a http redirect handler
|
||||
func (p *DefaultRP) AuthURLHandler(state string) http.HandlerFunc {
|
||||
return AuthURLHandler(state, p)
|
||||
return AuthURLHandler(
|
||||
func() string {
|
||||
return state
|
||||
}, p,
|
||||
)
|
||||
}
|
||||
|
||||
//deprecated: Use CodeExchange func and provide a RelayingParty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue