Component evidence

oauth2/OAuth2Error.java

scribejava · scribejava-core/src/main/java/com/github/scribejava/core/oauth2/OAuth2Error.java · java · MIT
auth

Standard OAuth 2.0 error codes enum for handling authentication failures.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/scribejava/scribejava | License: MIT | Copyright 2010 Pablo Fernandez
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.scribejava.core.oauth2;

import java.util.EnumSet;
import java.util.Set;

public enum OAuth2Error {
    /**
     * @see <a href="https://tools.ietf.org/html/rfc6749#section-4.1.2.1">RFC 6749, 4.1.2.1 Error Response</a>
     * @see <a href="https://tools.ietf.org/html/rfc6749#section-4.2.2.1">RFC 6749, 4.2.2.1 Error Response</a>
     * @see <a href="https://tools.ietf.org/html/rfc6749#section-5.2">RFC 6749, 5.2 Error Response</a>
     * @see <a href="https://tools.ietf.org/html/rfc6750#section-6.2">RFC 6750, 6.2. OAuth Extensions Error
     * Registration</a>
     */
    INVALID_REQUEST("invalid_request"),
   

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