Search Results for

    Show / Hide Table of Contents

    Class GoogleOidcProvider

    Implementation of the OpenID Connect Learning Layers Provider More information can be found here: https://auth.las2peer.org/auth/

    Inheritance
    object
    AbstractOidcProvider
    GoogleOidcProvider
    Implements
    IOidcProvider
    Inherited Members
    AbstractOidcProvider.serverName
    AbstractOidcProvider.authorizationEndpoint
    AbstractOidcProvider.tokenEndpoint
    AbstractOidcProvider.userInfoEndpoint
    AbstractOidcProvider.AuthorizationFlow
    AbstractOidcProvider.RestConnector
    AbstractOidcProvider.ClientData
    AbstractOidcProvider.JsonSerializer
    AbstractOidcProvider.Browser
    AbstractOidcProvider.ServerName()
    AbstractOidcProvider.CheckEndpoints(bool)
    AbstractOidcProvider.InitializeEndpointsAsync()
    AbstractOidcProvider.RequestEndpointsDataAsync()
    AbstractOidcProvider.GetAccessToken(Dictionary<string, string>)
    AbstractOidcProvider.GetUserInfoAsync(string)
    AbstractOidcProvider.GetUserInfo<T>(string)
    AbstractOidcProvider.CheckAccessTokenAsync(string)
    AbstractOidcProvider.ParametersContainError(Dictionary<string, string>, out string)
    AbstractOidcProvider.DecodeIDToken<T>(string)
    Namespace: i5.Toolkit.Core.OpenIDConnectClient
    Assembly: cs.temp.dll.dll
    Syntax
    public class GoogleOidcProvider : AbstractOidcProvider, IOidcProvider

    Constructors

    GoogleOidcProvider()

    Creates a new instance of the Learning Layers client

    Declaration
    public GoogleOidcProvider()

    Methods

    GenerateCSRFToken()

    Creates a sequence of 30 random numbers which is used as the session token

    Declaration
    public void GenerateCSRFToken()

    GetAccessTokenFromCodeAsync(string, string)

    Gets the access token based on a previously retrieved authorization code

    Declaration
    public override Task<string> GetAccessTokenFromCodeAsync(string code, string redirectUri)
    Parameters
    Type Name Description
    string code

    The authorization code

    string redirectUri

    The redirect URI which was used during the login

    Returns
    Type Description
    Task<><string>

    Returns the access token if it could be retrieved; otherwise it returns an empty string

    Overrides
    AbstractOidcProvider.GetAccessTokenFromCodeAsync(string, string)

    GetAuthorizationCode(Dictionary<string, string>)

    Extracts the authorization code from parameters of a Web answer

    Declaration
    public override string GetAuthorizationCode(Dictionary<string, string> redirectParameters)
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<TKey, TValue><string, string> redirectParameters

    Parameters of a Web answer as a dictionary

    Returns
    Type Description
    string

    The authorization code if it could be found, otherwise an empty string is returned

    Overrides
    AbstractOidcProvider.GetAuthorizationCode(Dictionary<string, string>)

    OpenLoginPage(string[], string)

    Opens the login page in the system's default Web browser, sets the required endpoints

    Declaration
    public override void OpenLoginPage(string[] scopes, string redirectUri)
    Parameters
    Type Name Description
    string[] scopes

    The OpenID Connect scopes that the user must agree to

    string redirectUri

    The URI to which the browser should redirect after the successful login

    Overrides
    AbstractOidcProvider.OpenLoginPage(string[], string)

    Implements

    IOidcProvider
    In This Article
    Back to top i5 Toolkit Documentation