constants

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrantType

type GrantType string

GrantType authorization model

const (
	// AuthorizationCode authorization_code grant type
	AuthorizationCode GrantType = "authorization_code"
	// PasswordCredentials password grant type
	PasswordCredentials GrantType = "password"
	// ClientCredentials client_credentials grant type
	ClientCredentials GrantType = "client_credentials"
	// Refreshing refresh_token grant type
	Refreshing GrantType = "refresh_token"
	//Implicit implicit grant type
	Implicit GrantType = "implicit"
	// DeviceCode device_code grant type
	DeviceCode GrantType = "urn:ietf:params:oauth:grant-type:device_code"
)

define authorization model

type ResponseType

type ResponseType string

ResponseType the type of authorization request

const (
	Code    ResponseType = "code"
	Token   ResponseType = "token"
	IDToken ResponseType = "id_token"
)

define the type of authorization request

func (ResponseType) String

func (rt ResponseType) String() string

Jump to

Keyboard shortcuts

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