Skip to main content

JwtAuthProvider

Used to Issue and process JWT Tokens and registers ConvertSessionToToken Service to convert Sessions to JWT Tokens

Assembly: ServiceStack.dll
View Source
Declaration
public class JwtAuthProvider : JwtAuthProviderReader, IAuthProvider, IAuthWithRequest, IAuthPlugin, IAuthResponseFilter

Properties

SetBearerTokenOnAuthenticateResponse

Whether to populate the Bearer Token in the AuthenticateResponse

View Source
Declaration
public bool SetBearerTokenOnAuthenticateResponse { get; set; }

MaxProfileUrlSize

View Source
Declaration
public static int MaxProfileUrlSize { get; set; }

Inherited Properties

AllowInFormData

Allow JWT in ss-tok=jwt HTML POST FormData. (default false)

View Source
Declaration
public bool AllowInFormData { get; set; }

AllowInQueryString

Allow JWT in ?ss-tok=jwt QueryString. (default false)

View Source
Declaration
public bool AllowInQueryString { get; set; }

Audience

The Audience to embed in the token. (default null)

View Source
Declaration
public string Audience { get; set; }

Audiences

Embed Multiple Audiences in the token. (default none) A JWT is valid if it contains ANY audience in this List

View Source
Declaration
public List<string> Audiences { get; set; }

AuthKey

The AuthKey used to sign the JWT Token

View Source
Declaration
public byte[] AuthKey { get; set; }

AuthKeyBase64

View Source
Declaration
public string AuthKeyBase64 { set; }

CreateHeaderFilter

Run custom filter after JWT Header is created

View Source
Declaration
public Action<JsonObject, IAuthSession> CreateHeaderFilter { get; set; }

CreatePayloadFilter

Run custom filter after JWT Payload is created

View Source
Declaration
public Action<JsonObject, IAuthSession> CreatePayloadFilter { get; set; }

EncryptPayload

Whether to encrypt JWE Payload (default false). Uses RSA-OAEP for Key Encryption and AES/128/CBC HMAC SHA256 for Content Encryption

View Source
Declaration
public bool EncryptPayload { get; set; }

ExpireRefreshTokensIn

How long should JWT Refresh Tokens be valid for. (default 365 days)

View Source
Declaration
public TimeSpan ExpireRefreshTokensIn { get; set; }

ExpireTokensIn

How long should JWT Tokens be valid for. (default 14 days)

View Source
Declaration
public TimeSpan ExpireTokensIn { get; set; }

ExpireTokensInDays

Convenient overload to initialize ExpireTokensIn with an Integer

View Source
Declaration
public int ExpireTokensInDays { set; }

FallbackAuthKeys

Allow verification using multiple Auth keys

View Source
Declaration
public List<byte[]> FallbackAuthKeys { get; set; }

FallbackPrivateKeys

Allow verification using multiple private keys for JWE tokens

View Source
Declaration
public List<RSAParameters> FallbackPrivateKeys { get; set; }

FallbackPublicKeys

Allow verification using multiple public keys

View Source
Declaration
public List<RSAParameters> FallbackPublicKeys { get; set; }

HashAlgorithm

Which Hash Algorithm should be used to sign the JWT Token. (default HS256)

View Source
Declaration
public string HashAlgorithm { get; set; }

IncludeJwtInConvertSessionToTokenResponse

Whether to also Include Token in ConvertSessionToTokenResponse

View Source
Declaration
public bool IncludeJwtInConvertSessionToTokenResponse { get; set; }

InvalidateJwtIds

Invalidate JWTs with ids

View Source
Declaration
public HashSet<string> InvalidateJwtIds { get; set; }

InvalidateRefreshTokensIssuedBefore

Whether to invalidate all JWT Refresh Tokens issued before a specified date.

View Source
Declaration
public DateTime? InvalidateRefreshTokensIssuedBefore { get; set; }

InvalidateTokensIssuedBefore

Whether to invalidate all JWT Access Tokens issued before a specified date.

View Source
Declaration
public DateTime? InvalidateTokensIssuedBefore { get; set; }

Issuer

The Issuer to embed in the token. (default ssjwt)

View Source
Declaration
public string Issuer { get; set; }

KeyId

What Id to use to identify the Key used to sign the token. (default First 3 chars of Base64 Key)

View Source
Declaration
public string KeyId { get; set; }

PopulateSessionFilter

Run custom filter after session is restored from a JWT Token

View Source
Declaration
public Action<IAuthSession, JsonObject, IRequest> PopulateSessionFilter { get; set; }

PreValidateJwtPayloadFilter

Inspect or modify JWT Payload before validation, return error message if invalid else null

View Source
Declaration
public Func<Dictionary<string, string>, string> PreValidateJwtPayloadFilter { get; set; }

PrivateKey

View Source
Declaration
public RSAParameters? PrivateKey { get; set; }

PrivateKeyXml

Convenient overload to initialize the Private Key via exported XML

View Source
Declaration
public string PrivateKeyXml { get; set; }

PublicKey

The RSA Public Key used to Verify the JWT Token when RSA is used

View Source
Declaration
public RSAParameters? PublicKey { get; set; }

PublicKeyXml

Convenient overload to initialize the Public Key via exported XML

View Source
Declaration
public string PublicKeyXml { get; set; }

RemoveInvalidTokenCookie

Whether to automatically remove expired or invalid cookies

View Source
Declaration
public bool RemoveInvalidTokenCookie { get; set; }

RequireHashAlgorithm

Whether to only allow processing of JWT Tokens using the configured HashAlgorithm. (default true)

View Source
Declaration
public bool RequireHashAlgorithm { get; set; }

RequiresAudience

Tokens must contain aud which is validated

View Source
Declaration
public bool RequiresAudience { get; set; }

RequireSecureConnection

Whether to only allow access via API Key from a secure connection. (default true)

View Source
Declaration
public bool RequireSecureConnection { get; set; }

ResolveJwtId

Change resolution for resolving unique jti id for Access Tokens

View Source
Declaration
public Func<IRequest, string> ResolveJwtId { get; set; }

ResolveRefreshJwtId

Change resolution for resolving unique jti id for Refresh Tokens

View Source
Declaration
public Func<IRequest, string> ResolveRefreshJwtId { get; set; }

ResolveUnixTime

Override conversion to Unix Time used in issuing JWTs and validation

View Source
Declaration
public Func<DateTime, long> ResolveUnixTime { get; set; }

ServiceRoutes

Modify the registration of ConvertSessionToToken Service

View Source
Declaration
public Dictionary<Type, string[]> ServiceRoutes { get; set; }

Type

View Source
Declaration
public override string Type { get; }

UseTokenCookie

Whether to store JWTs in Cookies (ss-tok) for successful Authentications (default true)

View Source
Declaration
public bool UseTokenCookie { get; set; }

ValidateRefreshToken

Allow custom logic to invalidate Refresh Tokens

View Source
Declaration
public Func<JsonObject, IRequest, bool> ValidateRefreshToken { get; set; }

ValidateToken

Allow custom logic to invalidate JWT Tokens

View Source
Declaration
public Func<JsonObject, IRequest, bool> ValidateToken { get; set; }

Methods

Init(IAppSettings)

View Source
Declaration
public override void Init(IAppSettings appSettings = null)
Parameters
TypeName
ServiceStack.Configuration.IAppSettingsappSettings

ExecuteAsync(AuthFilterContext)

View Source
Declaration
public async Task ExecuteAsync(AuthFilterContext authContext)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.AuthFilterContextauthContext

ResultFilterAsync(AuthResultContext, CancellationToken)

View Source
Declaration
public async Task ResultFilterAsync(AuthResultContext authContext, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.AuthResultContextauthContext
System.Threading.CancellationTokentoken

GetHashAlgorithm()

View Source
Declaration
public Func<byte[], byte[]> GetHashAlgorithm()
Returns

System.Func<System.Byte[],System.Byte[]>

GetHashAlgorithm(IRequest)

View Source
Declaration
public Func<byte[], byte[]> GetHashAlgorithm(IRequest req)
Returns

System.Func<System.Byte[],System.Byte[]>

Parameters
TypeName
ServiceStack.Web.IRequestreq

CreateJwtBearerToken(IAuthSession, IEnumerable<String>, IEnumerable<String>)

View Source
Declaration
public string CreateJwtBearerToken(IAuthSession session, IEnumerable<string> roles = null, IEnumerable<string> perms = null)
Returns

System.String

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
System.Collections.Generic.IEnumerable<System.String>roles
System.Collections.Generic.IEnumerable<System.String>perms

CreateJwtBearerToken(IRequest, IAuthSession, IEnumerable<String>, IEnumerable<String>)

View Source
Declaration
public string CreateJwtBearerToken(IRequest req, IAuthSession session, IEnumerable<string> roles = null, IEnumerable<string> perms = null)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Auth.IAuthSessionsession
System.Collections.Generic.IEnumerable<System.String>roles
System.Collections.Generic.IEnumerable<System.String>perms

CreateJwtRefreshToken(String, TimeSpan)

View Source
Declaration
public string CreateJwtRefreshToken(string userId, TimeSpan expireRefreshTokenIn)
Returns

System.String

Parameters
TypeName
System.StringuserId
System.TimeSpanexpireRefreshTokenIn

CreateJwtRefreshToken(IRequest, String, TimeSpan)

View Source
Declaration
public string CreateJwtRefreshToken(IRequest req, string userId, TimeSpan expireRefreshTokenIn)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.StringuserId
System.TimeSpanexpireRefreshTokenIn

EnableRefreshToken()

View Source
Declaration
protected virtual bool EnableRefreshToken()
Returns

System.Boolean

CreateEncryptedJweToken(JsonObject, RSAParameters)

View Source
Declaration
public static string CreateEncryptedJweToken(JsonObject jwtPayload, RSAParameters publicKey)
Returns

System.String

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload
System.Security.Cryptography.RSAParameterspublicKey

CreateJwt(JsonObject, JsonObject, Func<Byte[], Byte[]>)

View Source
Declaration
public static string CreateJwt(JsonObject jwtHeader, JsonObject jwtPayload, Func<byte[], byte[]> signData)
Returns

System.String

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtHeader
ServiceStack.Text.JsonObjectjwtPayload
System.Func<System.Byte[],System.Byte[]>signData

CreateJwtHeader(String, String)

View Source
Declaration
public static JsonObject CreateJwtHeader(string algorithm, string keyId = null)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
System.Stringalgorithm
System.StringkeyId

CreateJwtPayload(IAuthSession, String, TimeSpan, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>)

View Source
Declaration
public static JsonObject CreateJwtPayload(IAuthSession session, string issuer, TimeSpan expireIn, IEnumerable<string> audiences = null, IEnumerable<string> roles = null, IEnumerable<string> permissions = null)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
System.Stringissuer
System.TimeSpanexpireIn
System.Collections.Generic.IEnumerable<System.String>audiences
System.Collections.Generic.IEnumerable<System.String>roles
System.Collections.Generic.IEnumerable<System.String>permissions

Dump(String)

Dump contents of JWT

View Source
Declaration
public static string Dump(string jwt)
Returns

System.String

Parameters
TypeName
System.Stringjwt

PrintDump(String)

Print Dump contents of JWT to Console

View Source
Declaration
public static void PrintDump(string jwt)
Parameters
TypeName
System.Stringjwt

CreateAccessTokenFromRefreshToken(String, IRequest)

View Source
Declaration
public override async Task<string> CreateAccessTokenFromRefreshToken(string refreshToken, IRequest req)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringrefreshToken
ServiceStack.Web.IRequestreq

Inherited Methods

AssertJwtPayloadIsValid(JsonObject)

View Source
Declaration
public void AssertJwtPayloadIsValid(JsonObject jwtPayload)
Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

AssertRefreshJwtPayloadIsValid(JsonObject)

View Source
Declaration
public void AssertRefreshJwtPayloadIsValid(JsonObject jwtPayload)
Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

AuthenticateAsync(IServiceBase, IAuthSession, Authenticate, CancellationToken)

View Source
Declaration
public override Task<object> AuthenticateAsync(IServiceBase authService, IAuthSession session, Authenticate request, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.IServiceBaseauthService
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Authenticaterequest
System.Threading.CancellationTokentoken

AuthenticateBearerToken(IRequest, IResponse, String)

View Source
Declaration
protected virtual bool AuthenticateBearerToken(IRequest req, IResponse res, string bearerToken)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.StringbearerToken

AuthenticateRefreshToken(IRequest, IResponse, String)

View Source
Declaration
protected virtual async Task<bool> AuthenticateRefreshToken(IRequest req, IResponse res, string refreshToken)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.StringrefreshToken

AuthenticateResponseDecorator(AuthFilterContext)

View Source
Declaration
public object AuthenticateResponseDecorator(AuthFilterContext ctx)
Returns

System.Object

Parameters
TypeName
ServiceStack.Auth.AuthFilterContextctx

ConvertJwtToSession(IRequest, String)

View Source
Declaration
public virtual IAuthSession ConvertJwtToSession(IRequest req, string jwt)
Returns

ServiceStack.Auth.IAuthSession

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Stringjwt

CreateAccessTokenFromRefreshToken(String, IRequest)

View Source
Declaration
public virtual Task<string> CreateAccessTokenFromRefreshToken(string refreshToken, IRequest req)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringrefreshToken
ServiceStack.Web.IRequestreq

CreateSessionFromJwt(IRequest)

View Source
Declaration
public static IAuthSession CreateSessionFromJwt(IRequest req)
Returns

ServiceStack.Auth.IAuthSession

Parameters
TypeName
ServiceStack.Web.IRequestreq

CreateSessionFromPayload(IRequest, JsonObject)

View Source
Declaration
public virtual IAuthSession CreateSessionFromPayload(IRequest req, JsonObject jwtPayload)
Returns

ServiceStack.Auth.IAuthSession

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Text.JsonObjectjwtPayload

DefaultResolveUnixTime(DateTime)

View Source
Declaration
public static long DefaultResolveUnixTime(DateTime dateTime)
Returns

System.Int64

Parameters
TypeName
System.DateTimedateTime

Dump(String)

View Source
Declaration
public static string Dump(string jwt)
Returns

System.String

Parameters
TypeName
System.Stringjwt

ExtractHeader(String)

View Source
Declaration
public static Dictionary<string, object> ExtractHeader(string jwt)
Returns

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters
TypeName
System.Stringjwt

ExtractPayload(String)

View Source
Declaration
public static Dictionary<string, object> ExtractPayload(string jwt)
Returns

System.Collections.Generic.Dictionary<System.String,System.Object>

Parameters
TypeName
System.Stringjwt

GetAuthKey(IRequest)

View Source
Declaration
public byte[] GetAuthKey(IRequest req = null)
Returns

System.Byte[]

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetFallbackAuthKeys(IRequest)

View Source
Declaration
public List<byte[]> GetFallbackAuthKeys(IRequest req = null)
Returns

System.Collections.Generic.List<System.Byte[]>

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetFallbackPrivateKeys(IRequest)

View Source
Declaration
public List<RSAParameters> GetFallbackPrivateKeys(IRequest req = null)
Returns

System.Collections.Generic.List<System.Security.Cryptography.RSAParameters>

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetFallbackPublicKeys(IRequest)

View Source
Declaration
public List<RSAParameters> GetFallbackPublicKeys(IRequest req = null)
Returns

System.Collections.Generic.List<System.Security.Cryptography.RSAParameters>

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetInvalidJwtPayloadError(JsonObject)

View Source
Declaration
public virtual string GetInvalidJwtPayloadError(JsonObject jwtPayload)
Returns

System.String

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

GetInvalidRefreshJwtPayloadError(JsonObject)

View Source
Declaration
public virtual string GetInvalidRefreshJwtPayloadError(JsonObject jwtPayload)
Returns

System.String

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

GetKeyId(IRequest)

View Source
Declaration
public virtual string GetKeyId(IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetPrivateKey(IRequest)

View Source
Declaration
public RSAParameters? GetPrivateKey(IRequest req = null)
Returns

System.Nullable<System.Security.Cryptography.RSAParameters>

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetPublicKey(IRequest)

View Source
Declaration
public RSAParameters? GetPublicKey(IRequest req = null)
Returns

System.Nullable<System.Security.Cryptography.RSAParameters>

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetUnixTime(Dictionary<String, String>, String)

View Source
Declaration
public static long? GetUnixTime(Dictionary<string, string> jwtPayload, string key)
Returns

System.Nullable<System.Int64>

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>jwtPayload
System.Stringkey

GetValidJwtPayload(IRequest)

Return token payload which is both verified and still valid

View Source
Declaration
public virtual JsonObject GetValidJwtPayload(IRequest req)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetValidJwtPayload(IRequest, String)

Return token payload which is both verified and still valid

View Source
Declaration
public virtual JsonObject GetValidJwtPayload(IRequest req, string jwt)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Stringjwt

GetValidJwtPayload(String)

View Source
Declaration
public JsonObject GetValidJwtPayload(string jwt)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
System.Stringjwt

GetVerifiedJwePayload(IRequest, String[])

Return token payload which has been verified to be created using the configured encryption key. Use GetValidJwePayload() instead if you also want the payload validated.

View Source
Declaration
public virtual JsonObject GetVerifiedJwePayload(IRequest req, string[] parts)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.String[]parts

GetVerifiedJwePayload(String)

Return token payload which has been verified to be created using the configured encryption key. Use GetValidJwtPayload() instead if you also want the payload validated.

View Source
Declaration
public virtual JsonObject GetVerifiedJwePayload(string jwt)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
System.Stringjwt

GetVerifiedJwtPayload(IRequest, String[])

Return token payload which has been verified to be created using the configured encryption key. Use GetValidJwtPayload() instead if you also want the payload validated.

View Source
Declaration
public virtual JsonObject GetVerifiedJwtPayload(IRequest req, string[] parts)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.String[]parts

GetVerifiedJwtPayload(String)

Return token payload which has been verified to be created using the configured encryption key. Use GetValidJwtPayload() instead if you also want the payload validated.

View Source
Declaration
public virtual JsonObject GetVerifiedJwtPayload(string jwt)
Returns

ServiceStack.Text.JsonObject

Parameters
TypeName
System.Stringjwt

HasBeenInvalidated(JsonObject, Int64)

View Source
Declaration
public virtual bool HasBeenInvalidated(JsonObject jwtPayload, long unixTime)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload
System.Int64unixTime

HasExpired(JsonObject)

View Source
Declaration
public virtual bool HasExpired(JsonObject jwtPayload)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

HasInvalidatedId(JsonObject)

View Source
Declaration
public virtual bool HasInvalidatedId(JsonObject jwtPayload)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

HasInvalidAudience(JsonObject, out String)

View Source
Declaration
public virtual bool HasInvalidAudience(JsonObject jwtPayload, out string audience)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload
System.Stringaudience

HasInvalidNotBefore(JsonObject)

View Source
Declaration
public virtual bool HasInvalidNotBefore(JsonObject jwtPayload)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Text.JsonObjectjwtPayload

Init(IAppSettings)

View Source
Declaration
public virtual void Init(IAppSettings appSettings = null)
Parameters
TypeName
ServiceStack.Configuration.IAppSettingsappSettings

IsAuthorized(IAuthSession, IAuthTokens, Authenticate)

View Source
Declaration
public override bool IsAuthorized(IAuthSession session, IAuthTokens tokens, Authenticate request = null)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
ServiceStack.Authenticaterequest

IsJwtValid(IRequest)

View Source
Declaration
public bool IsJwtValid(IRequest req)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq

IsJwtValid(IRequest, String)

View Source
Declaration
public bool IsJwtValid(IRequest req, string jwt)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Stringjwt

IsJwtValid(String)

View Source
Declaration
public bool IsJwtValid(string jwt)
Returns

System.Boolean

Parameters
TypeName
System.Stringjwt

LastJwtId()

Get the last jti AutoId generated

View Source
Declaration
public string LastJwtId()
Returns

System.String

LastRefreshJwtId()

View Source
Declaration
public string LastRefreshJwtId()
Returns

System.String

NextJwtId()

Get the next AutoId for usage in jti JWT Access Tokens

View Source
Declaration
public string NextJwtId()
Returns

System.String

NextRefreshJwtId()

Get the next AutoId for usage in jti JWT Refresh Tokens

View Source
Declaration
public string NextRefreshJwtId()
Returns

System.String

PreAuthenticateAsync(IRequest, IResponse)

View Source
Declaration
public async Task PreAuthenticateAsync(IRequest req, IResponse res)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres

Register(IAppHost, AuthFeature)

View Source
Declaration
public override void Register(IAppHost appHost, AuthFeature feature)
Parameters
TypeName
ServiceStack.IAppHostappHost
ServiceStack.AuthFeaturefeature

RegisterResponseDecorator(RegisterFilterContext)

View Source
Declaration
public object RegisterResponseDecorator(RegisterFilterContext ctx)
Returns

System.Object

Parameters
TypeName
ServiceStack.Auth.RegisterFilterContextctx

VerifyJwePayload(IRequest, String[], out Byte[], out Byte[], out Byte[])

View Source
Declaration
public virtual bool VerifyJwePayload(IRequest req, string[] parts, out byte[] iv, out byte[] cipherText, out byte[] cryptKey)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.String[]parts
System.Byte[]iv
System.Byte[]cipherText
System.Byte[]cryptKey

VerifyPayload(IRequest, String, Byte[], Byte[])

View Source
Declaration
public virtual bool VerifyPayload(IRequest req, string algorithm, byte[] bytesToSign, byte[] sentSignatureBytes)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Stringalgorithm
System.Byte[]bytesToSign
System.Byte[]sentSignatureBytes

Implements