-
-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support auth_type parameter (#3487)
The Facebook OIDC provider supports an auth_type parameter that when set to "reauthenticate" will force the user to reauthenticate (similar to `prompt=login` for other Providers).
- Loading branch information
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -730,6 +730,7 @@ func TestStrategy(t *testing.T) { | |
fv.Set("upstream_parameters.login_hint", "[email protected]") | ||
fv.Set("upstream_parameters.hd", "ory.sh") | ||
fv.Set("upstream_parameters.prompt", "select_account") | ||
fv.Set("upstream_parameters.auth_type", "reauthenticate") | ||
|
||
res, err := c.PostForm(action, fv) | ||
require.NoError(t, err) | ||
|
@@ -741,6 +742,7 @@ func TestStrategy(t *testing.T) { | |
require.Equal(t, "[email protected]", loc.Query().Get("login_hint")) | ||
require.Equal(t, "ory.sh", loc.Query().Get("hd")) | ||
require.Equal(t, "select_account", loc.Query().Get("prompt")) | ||
require.Equal(t, "reauthenticate", loc.Query().Get("auth_type")) | ||
}) | ||
|
||
t.Run("case=should pass when logging in", func(t *testing.T) { | ||
|