-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for login_hint param (#147)
* Add support for login-hint.
- Loading branch information
1 parent
ce76bcf
commit 156466d
Showing
11 changed files
with
158 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// <copyright file="OktaParams.cs" company="Okta, Inc"> | ||
// Copyright (c) 2018-present Okta, Inc. All rights reserved. | ||
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Okta.AspNet.Abstractions | ||
{ | ||
/// <summary> | ||
/// Well-known parameters used by Okta authentication. | ||
/// </summary> | ||
public static class OktaParams | ||
{ | ||
/// <summary> | ||
/// Used to pass an Okta one-time session token. Session tokens can be obtained via the Authentication API. | ||
/// </summary> | ||
public const string SessionToken = "sessionToken"; | ||
|
||
/// <summary> | ||
/// Used to prepopulate a username if prompting for authentication. | ||
/// </summary> | ||
public const string LoginHint = "login_hint"; | ||
|
||
/// <summary> | ||
/// Used to provide an identity provider if there is no Okta Session. | ||
/// </summary> | ||
public const string Idp = "idp"; | ||
|
||
/// <summary> | ||
/// A list with all Okta well-known params. | ||
/// </summary> | ||
public static readonly IList<string> AllParams = new List<string>() { SessionToken, Idp, LoginHint }; | ||
} | ||
} |
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
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
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
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