Documentation ¶
Index ¶
- Variables
- type AuthManager
- func (am *AuthManager) AuthorizeUser(ss, t, orgId, role, relation, object string) (*ory.Session, error)
- func (am *AuthManager) LoginUser(email string, password string) (*ory.SuccessfulNativeLogin, error)
- func (am *AuthManager) UpdateRole(ss, t, orgId, role string, user *pkg.UserTraits) error
- func (am *AuthManager) ValidateSession(ss string, t string) (*ory.Session, error)
- type UIErrorResp
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 ¶
type UIErrorResp ¶
type UIErrorResp struct { Id string `json:"id"` Ui ory.UiContainer `json:"ui"` }
Click to show internal directories.
Click to hide internal directories.