service

package
v0.0.0-...-2ba808a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2UserInfo

type OAuth2UserInfo struct {
	Subject       string
	Profile       string
	Email         string
	EmailVerified bool

	Claims map[string]interface{}
}

type OIDCService

type OIDCService interface {
	GetToken(code, nonce, redirectURI string) (oauth2.Token, error)
	GetClaims(token oauth2.Token, claims interface{}) error
	RefreshToken(token oauth2.Token) (oauth2.Token, error)
	GetUserInfo(token oauth2.Token) (OAuth2UserInfo, error)
	GetTokenFromJwtBearer(username string) (oauth2.Token, error)
}

OIDCService represents the inteface with OP

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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