Interface IAuthenticationService
Provides abstraction for authentication service in a vortex application.
Namespace: TcOpen.Inxton.Security
Assembly: TcOpen.Inxton.Abstractions.dll
Syntax
public interface IAuthenticationService
Properties
| Improve this Doc View SourceExternalAuthorization
Get or set external authentication device handling.
Declaration
IExternalAuthorization ExternalAuthorization { get; set; }
Property Value
Type | Description |
---|---|
IExternal |
OnTimedLogoutRequest
Delegate is used to prevent/allow automatic user logout.
Declaration
OnTimedLogoutRequestDelegate OnTimedLogoutRequest { get; set; }
Property Value
Type | Description |
---|---|
On |
Methods
| Improve this Doc View SourceAuthenticateUser(String, String)
Attempts to authenticate the user.
Declaration
IUser AuthenticateUser(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System. |
username | User name |
System. |
password | Password |
Returns
Type | Description |
---|---|
IUser |
CalculateHash(String, String)
Calculates hash of the password
Declaration
string CalculateHash(string clearTextPassword, string salt)
Parameters
Type | Name | Description |
---|---|---|
System. |
clearTextPassword | Plain test password |
System. |
salt | Salt |
Returns
Type | Description |
---|---|
System. |
ChangePassword(String, String, String, String)
Changes the password of given user.
Declaration
void ChangePassword(string userName, string password, string newPassword1, string newPassword2)
Parameters
Type | Name | Description |
---|---|---|
System. |
userName | User name |
System. |
password | Old password |
System. |
newPassword1 | New password |
System. |
newPassword2 | New password |
DeAuthenticateCurrentUser()
De-authenticates current user.
Declaration
void DeAuthenticateCurrentUser()
HasAuthorization(String, Action)
Declaration
bool HasAuthorization(string roles, Action notAuthorizedAction = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
roles | |
System. |
notAuthorizedAction |
Returns
Type | Description |
---|---|
System. |
Events
| Improve this Doc View SourceOnDeAuthenticated
Occurs when current user is de-authenticated.
Declaration
event OnUserAuthentication OnDeAuthenticated
Event Type
Type | Description |
---|---|
On |
OnDeAuthenticating
Occurs when current user is to be de-authenticated.
Declaration
event OnUserAuthentication OnDeAuthenticating
Event Type
Type | Description |
---|---|
On |
OnUserAuthenticateFailed
Occurs when user authentication fails.
Declaration
event OnUserAuthentication OnUserAuthenticateFailed
Event Type
Type | Description |
---|---|
On |
OnUserAuthenticateSuccess
Occurs when the uses is successfully authenticated.
Declaration
event OnUserAuthentication OnUserAuthenticateSuccess
Event Type
Type | Description |
---|---|
On |