OAuth/OAuth2Constants.cs

git-credential-manager · src/Core/Authentication/OAuth/OAuth2Constants.cs · csharp · MIT
auth, Auth / Identity

Provides OAuth2 parameter and endpoint constants for authentication flows.

// Source: https://github.com/git-ecosystem/git-credential-manager | License: MIT | Copyright GitHub, Inc. and contributors
// Provided via justclaw.it.com; keep this notice with the code.

namespace GitCredentialManager.Authentication.OAuth
{
    public static class OAuth2Constants
    {
        public const string ClientIdParameter = "client_id";
        public const string ClientSecretParameter = "client_secret";
        public const string RedirectUriParameter = "redirect_uri";
        public const string ScopeParameter = "scope";
        public const string Trace2Category = "oauth2";

        public static class AuthorizationEndpoint
        {
            public const string StateParameter = "state";
            public const string AuthorizationCodeResponseType = "code";
            p

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key