Class OAuthTokenService
Inheritance
System.Object
OAuthTokenService
Assembly: Simplic.Framework.dll
Syntax
public class OAuthTokenService : object, IOAuthTokenService, IOAuthTokenRepository
Constructors
|
Improve this Doc
View Source
OAuthTokenService(IOAuthTokenRepository)
Creates a new OAuth token service
Declaration
public OAuthTokenService(IOAuthTokenRepository repository)
Parameters
Methods
|
Improve this Doc
View Source
Delete(Guid)
Declaration
public bool Delete(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Delete(OAuthToken)
Declaration
public bool Delete(OAuthToken obj)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Get(Guid)
Declaration
public OAuthToken Get(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
|
Improve this Doc
View Source
GetAll()
Declaration
public IEnumerable<OAuthToken> GetAll()
Returns
|
Improve this Doc
View Source
GetByUserAndTenantId(Int32, Guid)
Gets the token by the user ID and tenant ID
Declaration
public OAuthToken GetByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
Guid |
tenantId |
|
Returns
|
Improve this Doc
View Source
GetIdByUserAndTenantId(Int32, Guid)
Gets the id of the token by the user ID and tenant ID
Declaration
public Guid GetIdByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
Guid |
tenantId |
|
Returns
Type |
Description |
Guid |
the token
|
|
Improve this Doc
View Source
Save(OAuthToken)
Declaration
public bool Save(OAuthToken obj)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
IRepositoryBase<, >