Authenticator
Summary
Members | Descriptions |
---|---|
| |
| |
| Returns the style of the Button that will be rendered. |
| |
| Returns whether or not the dapp should attempt to auto login with the Authenticator app. Auto login will only occur when there is only one Authenticator that returns shouldRender() true and shouldAutoLogin() true. |
| Returns the amount of seconds after the authentication will be invalid for logging in on new browser sessions. Setting this value to zero will cause users to re-attempt authentication on every new browser session. Please note that the invalidate time will be saved client-side and should not be relied on for security. |
** | |
| Logs the user out of the dapp. This will be strongly dependent on each Authenticator app's patterns. |
| Default value for shouldInvalidateAfter(), 1 week in seconds |
| |
|
Members
public
Authenticator
(
Chain
chain,
UALOptions
options)
public virtual void
Init
(
Chain
chain,
UALOptions
options)
public
ButtonStyle
GetStyle
()
Returns the style of the Button that will be rendered.
public virtual bool
ShouldRender
()
public virtual bool
ShouldAutoLogin
()
Returns whether or not the dapp should attempt to auto login with the Authenticator app. Auto login will only occur when there is only one Authenticator that returns shouldRender() true and shouldAutoLogin() true.
public uint
ShouldInvalidateAfter
()
Returns the amount of seconds after the authentication will be invalid for logging in on new browser sessions. Setting this value to zero will cause users to re-attempt authentication on every new browser session. Please note that the invalidate time will be saved client-side and should not be relied on for security.
public virtual Task<
User
>
Login
(string accountName)
**
public virtual Task
Logout
()
Logs the user out of the dapp. This will be strongly dependent on each Authenticator app's patterns.
private uint
defaultInvalidateAfter
= 604800
Default value for shouldInvalidateAfter(), 1 week in seconds
private
ButtonStyle
ButtonStyle
private
UALOptions
Options
Last updated