Component evidence

oauth2/jose_algos.go

oauth2c · internal/oauth2/jose_algos.go · go · Apache-2.0
authsecurity

OAuth2 tool supporting all standard JWS/JWE algorithms for debugging

Source preview first 800 characters · full source over MCP
// Source: https://github.com/SecureAuthCorp/oauth2c | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package oauth2

import jose "github.com/go-jose/go-jose/v4"

// JOSE v4 requires explicit algorithm allowlists for Parse* calls.
// As an OAuth2 testing tool we accept every standard JWS/JWE algorithm
// so users can debug servers regardless of their configuration.

var JOSESignatureAlgorithms = []jose.SignatureAlgorithm{
	jose.HS256, jose.HS384, jose.HS512,
	jose.RS256, jose.RS384, jose.RS512,
	jose.ES256, jose.ES384, jose.ES512,
	jose.PS256, jose.PS384, jose.PS512,
	jose.EdDSA,
}

var JOSEKeyAlgorithms = []jose.KeyAlgorithm{
	jose.RSA1_5, jose.RSA_OAEP, jose.RSA_OAEP_256,
	jose.A

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