auth

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeAuthServerHandler

func NewFakeAuthServerHandler(account, password string) *api.TestServer

Types

type LoginResponse

type LoginResponse struct {
	Did          string `json:"did"`
	IsPortalPort bool   `json:"is_portal_port"`
	Sid          string `json:"sid"`
}

type PasswordLoginClient

type PasswordLoginClient struct {
	// contains filtered or unexported fields
}

func NewPasswordLoginClient

func NewPasswordLoginClient(baseURL string) *PasswordLoginClient

func (*PasswordLoginClient) Login

func (a *PasswordLoginClient) Login(account, password string) (*api.ResponseWrapper[*LoginResponse], error)

func (*PasswordLoginClient) NewAPIClient

func (a *PasswordLoginClient) NewAPIClient() api.Client

type SessionAuthorizer

type SessionAuthorizer struct {
	// contains filtered or unexported fields
}

func NewSessionAuthorizer

func NewSessionAuthorizer(sessionID string) *SessionAuthorizer

func (*SessionAuthorizer) Apply

func (a *SessionAuthorizer) Apply(values url.Values)

Jump to

Keyboard shortcuts

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