auth

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(url string) error

Types

type AuthClientImplementation

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

func New

func New(params Params) (AuthClientImplementation, error)

func (*AuthClientImplementation) FetchToken

func (c *AuthClientImplementation) FetchToken(code string) error

func (*AuthClientImplementation) GetTokenUser

func (c *AuthClientImplementation) GetTokenUser() (*nemgen.User, error)

func (*AuthClientImplementation) Login

func (c *AuthClientImplementation) Login(params LoginParams) error

func (*AuthClientImplementation) LoginStatus

func (c *AuthClientImplementation) LoginStatus(params LoginParams) error

func (*AuthClientImplementation) Logout

func (c *AuthClientImplementation) Logout(loggedoutMsg string) error

func (*AuthClientImplementation) RenderResponseHTML

func (c *AuthClientImplementation) RenderResponseHTML(success bool, responseErr error) (*string, error)

type LoginParams

type LoginParams struct {
	LoggedIn  string
	LoggedOut string
}

type Params

type Params struct {
	ConfigProvider configprovider.Provider
	Localize       *localize.Implementation
}

Jump to

Keyboard shortcuts

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