IdentityAuth
Assembly: ServiceStack.Extensions.dll
View Source
Declaration
public static class IdentityAuth : object
Properties
Config
View Source
Declaration
public static IIdentityAuthContext Config { get; }
Fields
TokenCookie
View Source
Declaration
public static string TokenCookie
RefreshTokenCookie
View Source
Declaration
public static string RefreshTokenCookie
Methods
For<TUser>()
View Source
Declaration
public static Action<AuthFeature> For<TUser>()
where TUser : IdentityUser
Returns
Action<ServiceStack.AuthFeature>
Type Parameters
TUser
For<TUser>(Action<IdentityAuthContext<TUser, IdentityRole>>)
View Source
Declaration
public static Action<AuthFeature> For<TUser>(Action<IdentityAuthContext<TUser, IdentityRole>> configure)
where TUser : IdentityUser
Returns
Action<ServiceStack.AuthFeature>
Parameters
Type | Name |
---|---|
Action<ServiceStack.Auth.IdentityAuthContext<<TUser>,IdentityRole>> | configure |
Type Parameters
TUser
For<TUser, TRole>()
View Source
Declaration
public static Action<AuthFeature> For<TUser, TRole>()
where TUser : IdentityUser where TRole : IdentityRole
Returns
Action<ServiceStack.AuthFeature>
Type Parameters
TUser
TRole
For<TUser, TRole>(Action<IdentityAuthContext<TUser, TRole>>)
View Source
Declaration
public static Action<AuthFeature> For<TUser, TRole>(Action<IdentityAuthContext<TUser, TRole>> configure)
where TUser : IdentityUser where TRole : IdentityRole
Returns
Action<ServiceStack.AuthFeature>
Parameters
Type | Name |
---|---|
Action<ServiceStack.Auth.IdentityAuthContext<<TUser>,<TRole>>> | configure |
Type Parameters
TUser
TRole
UseJwtCookie(IApplicationBuilder, Nullable<String>)
View Source
Declaration
public static IApplicationBuilder UseJwtCookie(this IApplicationBuilder app, string? cookieName = null)
Returns
IApplicationBuilder
Parameters
Type | Name |
---|---|
IApplicationBuilder | app |
System.Nullable<System.String> | cookieName |