Rev | Line | |
---|
[d23bf72] | 1 | using System;
|
---|
| 2 | using System.Collections.Immutable;
|
---|
| 3 | using System.IdentityModel.Tokens.Jwt;
|
---|
| 4 | using System.Security.Claims;
|
---|
| 5 |
|
---|
| 6 | namespace FarmatikoServices.Infrastructure
|
---|
| 7 | {
|
---|
| 8 | public interface IJwtAuthManager
|
---|
| 9 | {
|
---|
| 10 | IImmutableDictionary<string, RefreshToken> UsersRefreshTokensReadOnlyDictionary { get; }
|
---|
| 11 | JwtAuthResult GenerateTokens(string username, Claim[] claims, DateTime now);
|
---|
| 12 | JwtAuthResult Refresh(string refreshToken, string accessToken, DateTime now);
|
---|
| 13 | void RemoveExpiredRefreshTokens(DateTime now);
|
---|
| 14 | void RemoveRefreshTokenByUserName(string userName);
|
---|
| 15 | (ClaimsPrincipal, JwtSecurityToken) DecodeJwtToken(string token);
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.