corpsso

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 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 NewCorpSSODriver

func NewCorpSSODriver(cfg SSOConfig) sdk.Driver

Types

type CorpSSODriver

type CorpSSODriver struct {
	Config SSOConfig
}

func (CorpSSODriver) CheckSigninRequest

func (c CorpSSODriver) CheckSigninRequest(req sdk.AuthConsumerSigninRequest) error

func (CorpSSODriver) CheckSigninStateToken

func (c CorpSSODriver) CheckSigninStateToken(req sdk.AuthConsumerSigninRequest) error

func (CorpSSODriver) GetSigninURI

func (CorpSSODriver) GetUserInfoFromDriver

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"`
}

type SSOConfig

type SSOConfig 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
}

Jump to

Keyboard shortcuts

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