Class OAuthTokenModule | MARS Companion Core | 0.1.9-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class OAuthTokenModule

    Inheritance
    Object
    OAuthTokenModule
    OAuthTokenGenesisModule
    Namespace: Unity.Labs.MARS
    Syntax
    public abstract class OAuthTokenModule : IMarsIdentity

    Fields

    m_Token

    Declaration
    protected string m_Token
    Field Value
    Type Description
    String

    Properties

    ExtendedIdentityInformation

    Declaration
    public abstract Dictionary<string, string> ExtendedIdentityInformation { get; }
    Property Value
    Type Description
    Dictionary<String, String>
    Implements
    IMarsIdentity.ExtendedIdentityInformation

    IsValid

    Declaration
    public virtual bool IsValid { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IMarsIdentity.IsValid

    Token

    Declaration
    public abstract string Token { get; }
    Property Value
    Type Description
    String
    Implements
    IMarsIdentity.Token

    Username

    Declaration
    public abstract string Username { get; }
    Property Value
    Type Description
    String
    Implements
    IMarsIdentity.Username

    Methods

    CreateRandomString(Int32)

    Returns a random string that is compliant with the sign-in process

    Declaration
    protected static string CreateRandomString(int stringLength = 10)
    Parameters
    Type Name Description
    Int32 stringLength

    Length of the generated string to be returned

    Returns
    Type Description
    String

    SignIn(Action<Boolean>, String, Boolean)

    Declaration
    public abstract IEnumerator SignIn(Action<bool> callback = null, string intent = "", bool onlyCached = false)
    Parameters
    Type Name Description
    Action<Boolean> callback
    String intent
    Boolean onlyCached
    Returns
    Type Description
    IEnumerator
    Implements
    IMarsIdentity.SignIn(Action<Boolean>, String, Boolean)

    SignOut(Action<Boolean>)

    Declaration
    public abstract IEnumerator SignOut(Action<bool> callback = null)
    Parameters
    Type Name Description
    Action<Boolean> callback
    Returns
    Type Description
    IEnumerator
    Implements
    IMarsIdentity.SignOut(Action<Boolean>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023