mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 03:29:51 +02:00
lint
This commit is contained in:
parent
dce25e12d5
commit
11c43eb2ed
4 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ func (mp MockProvider) Revoke(_ context.Context, _ *oauth2.Token) error {
|
|||
// GetSignInURL is a mocked providers function.
|
||||
func (mp MockProvider) GetSignInURL(_ string) (string, error) { return mp.GetSignInURLResponse, nil }
|
||||
|
||||
// LogOut is a mocked providers function.
|
||||
// GetSignOutURL is a mocked providers function.
|
||||
func (mp MockProvider) GetSignOutURL(_, _ string) (string, error) {
|
||||
return mp.GetSignOutURLResponse, mp.GetSignOutURLError
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ func (p *Provider) GetSignInURL(state string) (string, error) {
|
|||
}
|
||||
|
||||
// GetSignOutURL is not implemented.
|
||||
func (p *Provider) GetSignOutURL(idTokenHint, redirectToURL string) (string, error) {
|
||||
func (p *Provider) GetSignOutURL(_, _ string) (string, error) {
|
||||
return "", oidc.ErrSignoutNotImplemented
|
||||
}
|
||||
|
||||
|
|
|
@ -246,7 +246,7 @@ func (p *Provider) GetSignInURL(state string) (string, error) {
|
|||
}
|
||||
|
||||
// GetSignOutURL is not implemented.
|
||||
func (p *Provider) GetSignOutURL(idTokenHint, redirectToURL string) (string, error) {
|
||||
func (p *Provider) GetSignOutURL(_, _ string) (string, error) {
|
||||
return "", oidc.ErrSignoutNotImplemented
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ func New(ctx context.Context, opts *oauth.Options) (*Provider, error) {
|
|||
}
|
||||
|
||||
// GetSignOutURL gets the sign out URL according to https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html.
|
||||
func (p *Provider) GetSignOutURL(idTokenHint, returnToURL string) (string, error) {
|
||||
func (p *Provider) GetSignOutURL(_, returnToURL string) (string, error) {
|
||||
oa, err := p.GetOauthConfig()
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error getting cognito oauth config: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue