identity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: AGPL-3.0, AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Context              context.Context
	NonceEnabledVerifier *oidc.IDTokenVerifier
	OAuth2               oauth2.Config
	Nonce                string
)

Functions

func DeleteAccount

func DeleteAccount(uuid string) error

func EnableOIDC

func EnableOIDC()

func GetAccount

func GetAccount(uuid string) (*gocloak.User, error)

func GetGroups

func GetGroups(uuid string) ([]*gocloak.UserGroup, error)

func GetRandomString

func GetRandomString(n int) string

GetRandomString generates a random base64 string

func Handshake

func Handshake()

func InitRandomPool

func InitRandomPool() error

func LoginAccount

func LoginAccount(username, password string) (*gocloak.JWT, error)

func NewAccount

func NewAccount(username, email, password string) (string, error)

func RefreshToken

func RefreshToken(ref string) (*gocloak.JWT, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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