res://addons/w4gd/supabase/auth.gd

Inherits: res://addons/w4gd/supabase/endpoint.gd < RefCounted

Inherited By: res://addons/w4gd/smauth/smauth.gd

The Supabase authentication end-point at /auth/v1.

Properties

res://addons/w4gd/supabase/auth.gd:Admin

admin

Methods

void

begin_sso ( Variant domain )

void

begin_sso_id ( Variant provider_id )

void

get_settings ( )

void

get_user ( )

void

login_email ( String p_email, String p_password )

void

login_sso ( Dictionary saml_response )

void

logout ( )

void

recover ( String p_email )

void

send_invite ( String p_email )

void

signup_email ( String p_email, String p_password )

void

update_user ( Dictionary p_data )

void

verify ( int p_type, String p_token )


Enumerations

enum VerifyType:

VerifyType SIGNUP = 0

VerifyType RECOVERY = 1

VerifyType INVITE = 2


Property Descriptions

res://addons/w4gd/supabase/auth.gd:Admin admin

The authentication admin end-point.


Method Descriptions

void begin_sso ( Variant domain )

Begin SSO authentication for the given SAML domain.


void begin_sso_id ( Variant provider_id )

Begin SSO authentication for the given SAML provider id.


void get_settings ( )

Gets the authentication settings from Supabase.


void get_user ( )

Gets the current user (if authenticated).


void login_email ( String p_email, String p_password )

Login to a user account using e-mail and password.


void login_sso ( Dictionary saml_response )

Complete SSO authentication using the given SAML response.


void logout ( )

Logout from the current authenticated user.


void recover ( String p_email )

Start the password recover process for a user account registered with the given e-mail.


void send_invite ( String p_email )

Send an invitation to sign-up for a new user account to the given e-mail address.


void signup_email ( String p_email, String p_password )

Signup for a new user account using e-mail and password.


void update_user ( Dictionary p_data )

Updates the current user (if authenticated).


void verify ( int p_type, String p_token )

Verify a signup, password recovery or invite.