gws.base.auth.method

Base authentication method.

Source code: gws.base.auth.method

Module Contents

class gws.base.auth.method.Config(*args, **kwargs)

Bases: gws.Config

Common options for authentication methods.

allowInsecureFrom: list[str] | None

IP addresses allowed to use this method without HTTPS.

secure: bool = True

Accept credentials only over HTTPS.

class gws.base.auth.method.Object

Bases: gws.AuthMethod

Base authentication method.

Reads the secure and allowInsecureFrom options, which the manager checks before it uses the method. Subclasses implement opening and closing sessions for web requests.

configure()

Configuration hook.

Called when the node is initialized. Raising an exception here aborts the creation of the node.