From 25f9960b40ec0837418aefdb47d4a3bd07ca4e70 Mon Sep 17 00:00:00 2001 From: "William R. Arellano" Date: Fri, 28 Apr 2023 14:21:14 -0500 Subject: [PATCH] feat(okta): add prompt requirement to authorize redirect --- src/Yesod/Auth/OAuth2/Okta.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yesod/Auth/OAuth2/Okta.hs b/src/Yesod/Auth/OAuth2/Okta.hs index 31303b3..cd12478 100644 --- a/src/Yesod/Auth/OAuth2/Okta.hs +++ b/src/Yesod/Auth/OAuth2/Okta.hs @@ -89,7 +89,7 @@ oauth2OktaWithScopes scopes host authorizationServer appRoot clientId clientSecr oauth2AuthorizeEndpoint = host `withPath` (mkEndpointSegment authorizationServer "authorize") - `withQuery` [scopeParam " " scopes], + `withQuery` [scopeParam " " scopes, ("prompt", "login")], oauth2TokenEndpoint = host `withPath` (mkEndpointSegment authorizationServer "token"), oauth2RedirectUri = Nothing, oauth2AppRoot = appRoot