cmd

package
v0.0.0-...-80b3b37 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cmd implements a command to run the JSSO server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(l *zap.Logger, dbConfig *store.Config) (*store.Connection, error)

Types

type App

type App struct {
	DB             *store.Connection
	Linker         *web.Linker
	Cookies        *sessions.CookieConfig
	Redirects      *redirecttokens.Config
	WebauthnConfig *webauthn.Config
	Permissions    *internalauth.Permissions

	UserService       *user.Service
	EnrollmentService *enrollment.Service
	LoginService      *login.Service
	SessionService    *session.Service

	PublicMux *http.ServeMux
}

func Setup

func Setup(appConfig *Config, authConfig *internalauth.Config, db *store.Connection) (*App, error)

type Config

type Config struct {
	BaseURL      string `` /* 163-byte string literal not displayed */
	TokenKey     string `long:"token_key" description:"32 bytes that are used to encrypt and sign set-cookie and redirect tokens." env:"TOKEN_KEY"`
	CookieDomain string `long:"cookie_domain" description:"Domain to set cookies for" env:"COOKIE_DOMAIN"`
}

Jump to

Keyboard shortcuts

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