client

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SESSION_KEY = "ukama_session"

Functions

This section is empty.

Types

type AuthManager

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

func NewAuthManager

func NewAuthManager(serverUrl string, timeout time.Duration, ketoClientUrl string) *AuthManager

func NewAuthManagerFromClient

func NewAuthManagerFromClient() *AuthManager

func (*AuthManager) AuthorizeUser

func (am *AuthManager) AuthorizeUser(ss, t, orgId, role, relation, object string) (*ory.Session, error)

func (*AuthManager) LoginUser

func (am *AuthManager) LoginUser(email string, password string) (*ory.SuccessfulNativeLogin, error)

func (*AuthManager) UpdateRole

func (am *AuthManager) UpdateRole(ss, t, orgId, role string, user *pkg.UserTraits) error

func (*AuthManager) ValidateSession

func (am *AuthManager) ValidateSession(ss string, t string) (*ory.Session, error)

type UIErrorResp

type UIErrorResp struct {
	Id string          `json:"id"`
	Ui ory.UiContainer `json:"ui"`
}

Jump to

Keyboard shortcuts

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