Documentation ¶
Index ¶
- func CreateState() (*State, *ConsentCode)
- type ConsentCode
- type State
- func (s *State) Hash() string
- func (s State) MarshalJSON() ([]byte, error)
- func (s *State) PollingCode(rlog log.Ext1FieldLogger) string
- func (s *State) Scan(src interface{}) error
- func (s State) State() string
- func (s *State) UnmarshalJSON(data []byte) error
- func (s State) Value() (driver.Value, error)
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 (State) MarshalJSON ¶
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) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.