auth

package
v5.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MockSessionCookieName = "atlas_mock_role"
View Source
const MockSignInPath = "/auth/mock-sign-in"

Variables

This section is empty.

Functions

func AllowedRoles

func AllowedRoles() []string

Types

type MockSessionManager

type MockSessionManager struct{}

func NewMockSessionManager

func NewMockSessionManager() *MockSessionManager

func (*MockSessionManager) ClearCookie

func (parseM *MockSessionManager) ClearCookie() *http.Cookie

func (*MockSessionManager) RequireInternalSession

func (parseM *MockSessionManager) RequireInternalSession(parseW http.ResponseWriter, parseR *http.Request) *Session

func (*MockSessionManager) Resolve

func (parseM *MockSessionManager) Resolve(parseR *http.Request) *Session

func (*MockSessionManager) StartCookie

func (parseM *MockSessionManager) StartCookie(parseRole string) *http.Cookie

type Session

type Session struct {
	UserID           string `json:"id"`
	DisplayName      string `json:"displayName"`
	Role             string `json:"role"`
	DefaultWarehouse string `json:"defaultWarehouse"`
}

Jump to

Keyboard shortcuts

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