Help us shape the future of Go! Take the 2026 Go Developer Survey

oauthparams

package
v0.40.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package oauthparams provides shared definitions for reserved OAuth2 authorization parameters that are managed by the framework.

Index

Constants

This section is empty.

Variables

View Source
var ReservedAuthorizationParams = map[string]bool{
	"response_type":         true,
	"client_id":             true,
	"redirect_uri":          true,
	"scope":                 true,
	"state":                 true,
	"code_challenge":        true,
	"code_challenge_method": true,
	"nonce":                 true,
}

ReservedAuthorizationParams are OAuth2 parameters managed by the framework that must not be set via AdditionalAuthorizationParams.

Functions

func Validate

func Validate(params map[string]string) error

Validate checks that no key in params is a reserved OAuth2 authorization parameter. Reserved parameters are managed by the framework and cannot be overridden via additional authorization params.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL