You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.0 KiB
52 lines
2.0 KiB
/*
|
|
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
* See https://github.com/openiddict/openiddict-core for more information concerning
|
|
* the license and the contributors participating to this project.
|
|
*/
|
|
|
|
namespace OpenIddict.Server.AspNetCore;
|
|
|
|
/// <summary>
|
|
/// Exposes common constants used by the OpenIddict ASP.NET Core host.
|
|
/// </summary>
|
|
public static class OpenIddictServerAspNetCoreConstants
|
|
{
|
|
public static class Cache
|
|
{
|
|
public const string AuthorizationRequest = "openiddict-authorization-request:";
|
|
public const string LogoutRequest = "openiddict-logout-request:";
|
|
}
|
|
|
|
public static class JsonWebTokenTypes
|
|
{
|
|
public static class Private
|
|
{
|
|
public const string AuthorizationRequest = "oi_authrq+jwt";
|
|
public const string LogoutRequest = "oi_lgtrq+jwt";
|
|
}
|
|
}
|
|
|
|
public static class Properties
|
|
{
|
|
public const string AccessTokenPrincipal = ".access_token_principal";
|
|
public const string AuthorizationCodePrincipal = ".authorization_code_principal";
|
|
public const string DeviceCodePrincipal = ".device_code_principal";
|
|
public const string Error = ".error";
|
|
public const string ErrorDescription = ".error_description";
|
|
public const string ErrorUri = ".error_uri";
|
|
public const string IdentityTokenPrincipal = ".identity_token_principal";
|
|
public const string RefreshTokenPrincipal = ".refresh_token_principal";
|
|
public const string Scope = ".scope";
|
|
public const string UserCodePrincipal = ".user_code_principal";
|
|
}
|
|
|
|
public static class Tokens
|
|
{
|
|
public const string AccessToken = "access_token";
|
|
public const string AuthorizationCode = "authorization_code";
|
|
public const string DeviceCode = "device_code";
|
|
public const string IdentityToken = "id_token";
|
|
public const string RefreshToken = "refresh_token";
|
|
public const string UserCode = "user_code";
|
|
}
|
|
}
|
|
|