mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 07:37:33 +02:00
authenticate: delay evaluation of OIDC provider (#1802)
* authenticate: delay evaluation of OIDC provider * add additional error message * address comments
This commit is contained in:
parent
a14b65ec3f
commit
5e3aa91f23
7 changed files with 176 additions and 54 deletions
|
@ -231,8 +231,8 @@ func (p *Provider) Revoke(ctx context.Context, token *oauth2.Token) error {
|
|||
|
||||
// GetSignInURL returns a URL to OAuth 2.0 provider's consent page
|
||||
// that asks for permissions for the required scopes explicitly.
|
||||
func (p *Provider) GetSignInURL(state string) string {
|
||||
return p.Oauth.AuthCodeURL(state, oauth2.AccessTypeOffline)
|
||||
func (p *Provider) GetSignInURL(state string) (string, error) {
|
||||
return p.Oauth.AuthCodeURL(state, oauth2.AccessTypeOffline), nil
|
||||
}
|
||||
|
||||
// LogOut is not implemented by github.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue