state

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateState added in v0.2.0

func CreateState() (*State, *ConsentCode)

CreateState creates a new State and ConsentCode from the passed Info

Types

type ConsentCode added in v0.2.0

type ConsentCode struct {
	// contains filtered or unexported fields
}

ConsentCode is type for the code used for giving consent to mytoken

func ConsentCodeFromStr added in v0.3.0

func ConsentCodeFromStr(code string) *ConsentCode

ConsentCodeFromStr turns a consent code string into a *ConsentCode

func NewConsentCode added in v0.2.0

func NewConsentCode() *ConsentCode

NewConsentCode creates a new ConsentCode

func (*ConsentCode) GetState added in v0.2.0

func (c *ConsentCode) GetState() string

GetState returns the state linked to a ConsentCode

func (ConsentCode) String added in v0.2.0

func (c ConsentCode) String() string

type State

type State struct {
	// contains filtered or unexported fields
}

State is a type for the oidc state

func NewState

func NewState(state string) *State

NewState creates a new State from a state string

func (*State) Hash

func (s *State) Hash() string

Hash returns the hash for this State

func (State) MarshalJSON

func (s State) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (*State) PollingCode

func (s *State) PollingCode(rlog log.Ext1FieldLogger) string

PollingCode returns the polling code for this State

func (*State) Scan

func (s *State) Scan(src interface{}) error

Scan implements the sql.Scanner interface

func (State) State

func (s State) State() string

State returns the state string for this State

func (*State) UnmarshalJSON

func (s *State) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

func (State) Value

func (s State) Value() (driver.Value, error)

Value implements the driver.Valuer interface

Jump to

Keyboard shortcuts

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