AuthSchemas
Ecng.Net
Provides authentication schemas and extension methods for formatting authentication tokens.
Métodos
FormatAuth
public static string FormatAuth(string schema, SecureString token)
result = AuthSchemas.FormatAuth(schema, token)
Formats the authentication header using a secure string token. The token is converted to its unsecured string representation before formatting.
- schema
- The authentication scheme.
- token
- The secure string token.
Retorna: A formatted authentication header.
FormatAuth
public static string FormatAuth(string schema, string token)
result = AuthSchemas.FormatAuth(schema, token)
Formats the authentication header using a regular string token.
- schema
- The authentication scheme.
- token
- The token as a string.
Retorna: A formatted authentication header.
Campos
Basic
public const string Basic
value = AuthSchemas.Basic
Represents the basic authentication scheme.
Bearer
public const string Bearer
value = AuthSchemas.Bearer
Represents the bearer authentication scheme.