sso_routes

package
v0.0.0-...-347cd60 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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)

func (*Params) Get

func (p *Params) Get(key string) string

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
}

Jump to

Keyboard shortcuts

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