constants

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrantType         = "grant_type"
	Scope             = "scope"
	ClientID          = "client_id"
	ClientSecret      = "client_secret"
	State             = "state"
	RedirectURI       = "redirect_uri"
	ResponseType      = "response_type"
	Code              = "code"
	Username          = "username"
	Password          = "password"
	RefreshToken      = "refresh_token"
	UserOAuthApproval = "user_oauth_approval"
	ScopePrefix       = "scope."
)

OAuth2 请求映射参数常量

View Source
const (
	GrantTypePassword = "password"
	GrantTypeCode     = "authorization_code"
	GrantTypeImplicit = "implicit"
	GrantTypeClient   = "client_credentials"
	GrantTypeRefresh  = "refresh_token"
)

授权类型

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenPayloadKey

type TokenPayloadKey string

TokenPayloadKey Token载体key

const (
	TokenUsername    TokenPayloadKey = "username"
	TokenUser        TokenPayloadKey = "user"
	TokenAud         TokenPayloadKey = "aud"
	TokenClientID    TokenPayloadKey = "client_id"
	TokenExp         TokenPayloadKey = "exp"
	TokenJti         TokenPayloadKey = "jti"
	TokenGrantType   TokenPayloadKey = "grant_type"
	TokenAti         TokenPayloadKey = "ati"
	TokenScope       TokenPayloadKey = "scope"
	TokenAuthorities TokenPayloadKey = "authorities"
)

Token载体key

Jump to

Keyboard shortcuts

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