Authenticator

class UniversalAuthenticatorLibrary::Authenticator
  : public MonoBehaviour

Summary

MembersDescriptions

public Authenticator( Chainchain, UALOptions options)

public virtual void Init( Chainchain, UALOptions options)

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 Chain Chain

Members

public Authenticator( Chainchain, UALOptions options)

public virtual void Init( Chainchain, 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 Chain Chain

private UALOptions Options

Last updated