oauth2

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(root iris.Party)

Types

type Access

type Access struct {
	AccessToken string    `json:"accessToken,omitempty"`
	TokenType   TokenType `json:"tokenType,omitempty"`
	Scope       string    `json:"scope,omitempty"`
	ExpiresIn   int64     `json:"expiresIn,omitempty"`
}

type AccessTokenResp

type AccessTokenResp struct {
	app.Response
	Access
	RefreshToken string `json:"refreshToken,omitempty"`
}

type CredentialTokenResp

type CredentialTokenResp struct {
	app.Response
	Access
}

type GrantType

type GrantType string
const (
	AuthorizationCode GrantType = "authorization_code"
	ClientCredentials GrantType = "client_credentials"
	Refreshing        GrantType = "refresh_token"
)

type ResponseType

type ResponseType string
const (
	Code ResponseType = "code"
)

type TokenType

type TokenType string
const (
	Bearer TokenType = "bearer"
)

Jump to

Keyboard shortcuts

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