diff --git a/pkg/rp/relaying_party.go b/pkg/rp/relaying_party.go index 109a3ef..3fe8b4b 100644 --- a/pkg/rp/relaying_party.go +++ b/pkg/rp/relaying_party.go @@ -401,6 +401,15 @@ func WithCodeChallenge(codeChallenge string) AuthURLOpt { } } +//WithPrompt sets the `prompt` params in the auth request +func WithPrompt(prompt oidc.Prompt) AuthURLOpt { + return func() []oauth2.AuthCodeOption { + return []oauth2.AuthCodeOption{ + oauth2.SetAuthURLParam("prompt", string(prompt)), + } + } +} + type CodeExchangeOpt func() []oauth2.AuthCodeOption //WithCodeVerifier sets the `code_verifier` param in the token request