Class DanglIdentityLoginHandler
This class aids in authenticating with Dangl.Identity via OpenID Connect via the ResourceOwnerPassword grant or via the token_refresh grant
Inheritance
System.Object
DanglIdentityLoginHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.Identity.Client
Assembly: Dangl.Identity.Client.dll
Syntax
public class DanglIdentityLoginHandler
Constructors
| Improve this Doc View SourceDanglIdentityLoginHandler(IDanglIdentityConfig, HttpClient, ILoggerFactory)
This class aids in authenticating with Dangl.Identity via OpenID Connect via the ResourceOwnerPassword grant
Declaration
public DanglIdentityLoginHandler(IDanglIdentityConfig config, HttpClient httpClient, ILoggerFactory loggerFactory = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IDanglIdentityConfig | config | |
| System.Net.Http.HttpClient | httpClient | |
| Microsoft.Extensions.Logging.ILoggerFactory | loggerFactory |
Methods
| Improve this Doc View SourceLoginAsync(String, String)
This will attempt to login via the ResourceOwnerPassword grant
Declaration
public Task<TokenResponse> LoginAsync(string identifier, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier | |
| System.String | password |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IdentityModel.Client.TokenResponse> |
RefreshAsync(String)
This will refresh an OAuth2 token
Declaration
public Task<TokenResponse> RefreshAsync(string refreshToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | refreshToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IdentityModel.Client.TokenResponse> |