Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Enabled = false
Functions ¶
func GenerateSSOToken ¶
func GenerateSSOToken(c *fiber.Ctx) string
Generate the token required for using SSO with SSR
func Unauthorized ¶
func Unauthorized(router fiber.Router)
func Unencrypted ¶
func Unencrypted(router fiber.Router)
Types ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Implementation of goth.Params copied from goth_fiber (look at notice above)
type SSOState ¶
type SSOState struct { // Stuff for the redirect itself State string // The state string provided to the open id provider Session string // The goth (auth library) session Locale string // The locale of the thing (can't be fetched in the callback endpoint) // Stuff for the check endpoint UserID string // The user id from the SSO provider Email string // The email from the SSO provider Done bool // Check if the thing is done }
Click to show internal directories.
Click to hide internal directories.