Search Results for

    Show / Hide Table of Contents

    Class GitHubOidcProvider

    Implementation of the OpenID Connect GitHub Provider

    Inheritance
    Object
    AbstractOidcProvider
    GitHubOidcProvider
    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(Boolean)
    AbstractOidcProvider.InitializeEndpointsAsync()
    AbstractOidcProvider.RequestEndpointsDataAsync()
    AbstractOidcProvider.GetAccessToken(Dictionary<String, String>)
    AbstractOidcProvider.GetUserInfo<T>(String)
    AbstractOidcProvider.CheckAccessTokenAsync(String)
    AbstractOidcProvider.GetAuthorizationCode(Dictionary<String, String>)
    AbstractOidcProvider.ParametersContainError(Dictionary<String, String>, String)
    AbstractOidcProvider.DecodeIDToken<T>(String)
    Namespace: i5.Toolkit.Core.OpenIDConnectClient
    Assembly: cs.temp.dll.dll
    Syntax
    public class GitHubOidcProvider : AbstractOidcProvider, IOidcProvider

    Constructors

    GitHubOidcProvider()

    Creates a new instance of the GitHub client

    Declaration
    public GitHubOidcProvider()

    Methods

    GetAccessTokenFromCodeAsync(String, String)

    Gets the access token based on a previously retrieved authorization code

    Declaration
    public override async 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)

    GetUserInfoAsync(String)

    Gets information about the logged in user from the GitHub provider

    Declaration
    public override async Task<IUserInfo> GetUserInfoAsync(string accessToken)
    Parameters
    Type Name Description
    String accessToken

    The access token to authenticate the user

    Returns
    Type Description
    Task<IUserInfo>

    Returns information about the logged in user if the request was successful, otherwise null

    Overrides
    AbstractOidcProvider.GetUserInfoAsync(String)

    OpenLoginPage(String[], String)

    Opens the GitHUb login page in the system's default Web browser

    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