Search Results for

    Show / Hide Table of Contents

    Interface IOAuthService

    Namespace: ImageVault.Core.Common.Services
    Assembly: ImageVault.Core.dll
    Syntax
    public interface IOAuthService

    Methods

    Delete(String, String)

    Deletes all refresh tokens for a specific resourceOwner/clientIdentity combo.

    Declaration
    void Delete(string clientIdentity, string resourceOwner)
    Parameters
    Type Name Description
    System.String clientIdentity
    System.String resourceOwner

    DisablePinCode(String)

    Disables a registered pin code

    Declaration
    void DisablePinCode(string pin)
    Parameters
    Type Name Description
    System.String pin

    EnsureRefreshToken(String, IdentityTicket, Nullable<DateTime>)

    Register a refresh token

    Declaration
    DbOAuthRefreshToken EnsureRefreshToken(string clientIdentity, IdentityTicket identityTicket, DateTime? expires)
    Parameters
    Type Name Description
    System.String clientIdentity
    IdentityTicket identityTicket
    System.Nullable<System.DateTime> expires
    Returns
    Type Description
    DbOAuthRefreshToken

    GetAuthorizationInfo(String)

    Gets the authorization code by pin code.

    Declaration
    OAuthAuthorizationInfo GetAuthorizationInfo(string pin)
    Parameters
    Type Name Description
    System.String pin
    Returns
    Type Description
    OAuthAuthorizationInfo

    The authorization code or null

    GetClientIdByPin(String)

    Gets the ClientId associated with the supplied pin.

    Declaration
    string GetClientIdByPin(string pin)
    Parameters
    Type Name Description
    System.String pin

    pin code

    Returns
    Type Description
    System.String

    HasUserAllowedClientAccess(String, String)

    Checks if a user has allowed access for a client

    Declaration
    bool HasUserAllowedClientAccess(string username, string clientId)
    Parameters
    Type Name Description
    System.String username

    The identity name of the user

    System.String clientId

    The id of the client

    Returns
    Type Description
    System.Boolean

    True if the user has allowed access for the client. False otherwise.

    RegisterAuthorizationToken(OAuthAuthorizationToken)

    Registers the supplied authorization token

    Declaration
    string RegisterAuthorizationToken(OAuthAuthorizationToken authToken)
    Parameters
    Type Name Description
    OAuthAuthorizationToken authToken
    Returns
    Type Description
    System.String

    The authorization code to use to access the registered authorization token

    RegisterPinCode(String)

    Registers a new pin code for the specified client identity

    Declaration
    string RegisterPinCode(string clientId)
    Parameters
    Type Name Description
    System.String clientId

    The client identity

    Returns
    Type Description
    System.String
    In This Article
    Back to top (c) Meriworks 2002-2022