oauthflow

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalProviderFlow added in v0.0.13

type ExternalProviderFlow struct{}

type OAuthRegistrationResponse added in v0.0.7

type OAuthRegistrationResponse struct {
	ID            string             `json:"id"`
	Email         string             `json:"email"`
	EmailVerified bool               `json:"emailVerified"`
	FirstName     string             `json:"firstName" bson:"firstName"`
	LastName      string             `json:"lastName" bson:"lastName"`
	DisplayName   string             `json:"displayName" bson:"displayName"`
	Roles         []models.UserRole  `json:"roles" bson:"roles"`
	Claims        []models.UserClaim `json:"claims" bson:"claims"`
}

type PasswordGrantFlow

type PasswordGrantFlow struct{}

func (PasswordGrantFlow) Authenticate

func (passwordGrantFlow PasswordGrantFlow) Authenticate(request *models.OAuthLoginRequest) (*models.OAuthLoginResponse, *models.OAuthErrorResponse)

func (PasswordGrantFlow) RefreshToken

func (passwordGrantFlow PasswordGrantFlow) RefreshToken(request *models.OAuthLoginRequest) (*models.OAuthLoginResponse, *models.OAuthErrorResponse)

Jump to

Keyboard shortcuts

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