corpsso

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TTL        = 15 * time.Minute
	TTLSeconds = int(TTL / time.Second)
)

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(cfg Config) sdk.AuthDriver

Types

type Config

type Config struct {
	Request struct {
		RedirectMethod string
		RedirectURL    string
		Keys           struct {
			RequestSigningKey string
		}
	}
	Token struct {
		SigningKey    string
		KeySigningKey struct {
			KeySigningKey   string
			SigningKeyClaim string
		}
	}
	MFASupportEnabled    bool
	AllowedOrganizations sdk.StringSlice
}

type IssuedToken

type IssuedToken struct {
	Audience       string   `json:"Audience"`
	RemoteUser     string   `json:"RemoteUser"`
	RemoteUsername string   `json:"RemoteUsername"`
	Email          string   `json:"email"`
	TokenID        string   `json:"TokenId"`
	MFA            bool     `json:"MFA"`
	IAT            int64    `json:"iat"`
	Organization   string   `json:"org"`
	Groups         []string `json:"Groups,omitempty"`
}

Jump to

Keyboard shortcuts

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