Initial Commit ...
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial class CommonConstants {
|
||||
public static char DEFAULT_LIST_SEPERATOR = ',';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial struct ConfigurationNodeNames {
|
||||
public const string CERTIFICATES_NODE = "Certificates";
|
||||
public const string SWAGGER_NODE = "SwaggerConfiguration";
|
||||
public const string MESSAGE_RESOURCE_TITLES_NODE = "MessageResourceTitles";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial struct XAuthentication {
|
||||
public const string JWT = "jwt";
|
||||
public const string BEARER = "Bearer";
|
||||
public const string TOKEN = "token";
|
||||
public const string INTROSPECTION = "introspection";
|
||||
public const string IDENTITY_SERVER_LOCAL_API = "IdentityServerAccessToken";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial struct XAuthorization {
|
||||
public const string TokenIdentifier = "Bearer ";
|
||||
public const string Header = "Authorization";
|
||||
public const string AccessToken = "access_token";
|
||||
public const string RefreshToken = "refresh_token";
|
||||
public const string ExpiresAt = "expires_at";
|
||||
public const string AccessTokenExpired = "AccessToken-Expired";
|
||||
public const string RevisionChecksum = "revision_checksum";
|
||||
public const string XPoweredBy = "X-PoweredBy";
|
||||
public const int ThresholdBeforeTokenExpiration = 600;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial struct XCustomClaims {
|
||||
public const string IsEnabled = "is_enabled";
|
||||
public const string IsBanned = "is_banned";
|
||||
public const string Issuer = "iss";
|
||||
public const string ExpiredOn = "exp";
|
||||
public const string Audience = "aud";
|
||||
public const string ClientId = "client_id";
|
||||
public const string AuthenticatedOn = "auth_time";
|
||||
public const string UserId = "sub";
|
||||
public const string UserName = "unique_name";
|
||||
public const string FirstName = "given_name";
|
||||
public const string LastName = "family_name";
|
||||
public const string Gender = "gender";
|
||||
public const string Picture = "picture";
|
||||
public const string BrithDate = "birthdate";
|
||||
public const string Email = "email";
|
||||
public const string EmailVerified = "email_verified";
|
||||
public const string PhoneNumber = "phone_number";
|
||||
public const string PhoneNumberVerified = "phone_number_verified";
|
||||
public const string Role = "role";
|
||||
public const string Scope = "scope";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace xCommons.Constants {
|
||||
/// <summary>
|
||||
/// a collection of available Client Devices
|
||||
/// </summary>
|
||||
public enum XDeviceType {
|
||||
Unknown,
|
||||
Mobile,
|
||||
Tablet,
|
||||
Desktop
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace xCommons.Constants {
|
||||
public enum XFileType {
|
||||
Image,
|
||||
ProfileImasge,
|
||||
CoverImage,
|
||||
Audio,
|
||||
Video,
|
||||
Document
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace xCommons.Constants {
|
||||
public partial struct XPolicy {
|
||||
public const string AllowedOrigins = "AllowedOrigins";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user