challenge

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteLocalWeepCredentials

func DeleteLocalWeepCredentials() error

func HasValidJwt

func HasValidJwt(challenge *ConsolemeChallengeResponse) bool

func NewHTTPClient

func NewHTTPClient(consolemeUrl string) (*http.Client, error)

func RefreshChallenge

func RefreshChallenge() error

Types

type ConsolemeChallenge

type ConsolemeChallenge struct {
	ChallengeURL string `json:"challenge_url"`
	PollingUrl   string `json:"polling_url"`
}

type ConsolemeChallengeResponse

type ConsolemeChallengeResponse struct {
	Status       string `json:"status"`
	EncodedJwt   string `json:"encoded_jwt"`
	CookieName   string `json:"cookie_name"`
	WantSecure   bool   `json:"secure"`
	WantHttpOnly bool   `json:"http_only"`
	SameSite     int    `json:"same_site"`
	Expires      int64  `json:"expiration"`
	User         string `json:"user"`
}

Jump to

Keyboard shortcuts

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