gws.plugin.auth_method.web.core

Web authorisation method.

Source code: gws.plugin.auth_method.web.core

Module Contents

class gws.plugin.auth_method.web.core.Config

Bases: gws.base.auth.method.Config

Web-based authorization options

cookieName: str = 'auth'

name for the cookie

cookiePath: str = '/'

cookie path

class gws.plugin.auth_method.web.core.LoginRequest(*args, **kwargs)

Bases: gws.Request

Command request.

password: str
username: str
class gws.plugin.auth_method.web.core.LoginResponse(*args, **kwargs)

Bases: gws.Response

Command response.

mfaCanRestart: bool = False
mfaMessage: str = ''
mfaState: gws.AuthMultiFactorState | None
user: gws.base.auth.user.Props | None
class gws.plugin.auth_method.web.core.LogoutResponse(*args, **kwargs)

Bases: gws.Response

Command response.

class gws.plugin.auth_method.web.core.MfaVerifyRequest(*args, **kwargs)

Bases: gws.Request

Command request.

payload: dict
class gws.plugin.auth_method.web.core.Object

Bases: gws.base.auth.method.Object

cookieName: str
cookiePath: str
deletedSession: gws.base.auth.session.Object
activate()
close_session(req, res)
configure()
handle_login(req: gws.WebRequester, p: LoginRequest) LoginResponse
handle_logout(req: gws.WebRequester) gws.Response
handle_mfa_restart(req: gws.WebRequester, p: gws.Request) LoginResponse
handle_mfa_verify(req: gws.WebRequester, p: MfaVerifyRequest) LoginResponse
open_session(req)
class gws.plugin.auth_method.web.core.UserResponse(*args, **kwargs)

Bases: gws.Response

Command response.

user: gws.base.auth.user.Props | None