oidc

package
v0.0.0-...-57ebffe Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	// ID is access token in http json response
	ID     ID
	UserID ID
	// http form params
	Scopes      []string
	RedirectURI string
	ClientID    string
	GrantType   string
}

func (AccessToken) GetID

func (t AccessToken) GetID() ID

type AuthCode

type AuthCode struct {
	ID     ID
	UserID ID
	// http form params
	ClientID     ID
	RedirectURI  string
	State        string
	Scope        []string
	ResponseType []string
}

func (AuthCode) GetID

func (c AuthCode) GetID() ID

type AuthRequest

type AuthRequest AuthCode

auth request symbols the authorizate request this auth request is switched to auth code after validation of User In general this is the same type as auth code, but it has different storage for security and simplicity reasons

func (AuthRequest) GetID

func (r AuthRequest) GetID() ID

type Client

type Client struct {
	ID           ID
	Secret       string
	RedirectURIs []string
}

func (Client) GetID

func (c Client) GetID() ID

type ID

type ID = string

type IDer

type IDer interface {
	GetID() ID
}

type User

type User struct {
	// ID is username, this is simple but it is for showcase purposes
	ID       ID
	Password string
}

func (User) GetID

func (u User) GetID() ID

Jump to

Keyboard shortcuts

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