Auth Settings

Last Edit: Jun 06 2020

Enable Development Tokens

Token validation can be disabled for development apps. This allows you to use development tokens and work on user token provisioning later on.


// disable auth checks, allows dev token usage
await client.updateAppSettings({
    disable_auth_checks: true,
});

// re-enable auth checks
await client.updateAppSettings({
    disable_auth_checks: false,
});
                    

# disable auth checks, allows dev token usage
client.update_app_settings(disable_auth_checks=True)

# re-enable auth checks
client.update_app_settings(disable_auth_checks=False)
                    

// disable auth checks, allows dev token usage
$update = $client->updateAppSettings([
	'disable_auth_checks' => true
]);


// re-enable auth checks
$update = $client->updateAppSettings([
	'disable_auth_checks' => false
]);
                    

// disable auth checks, allows dev token usage
settings := NewAppSettings().SetDisableAuth(true)
err = client.UpdateAppSettings(settings)
if err != nil {
	log.Fatalf("Err: %v", err)
}
        
// re-enable auth checks
err = client.UpdateAppSettings(NewAppSettings().SetDisableAuth(false))
if err != nil {
	log.Fatalf("Err: %v", err)
}
                    

Disable Permission Checking

By default all apps ship with role based permission checks. During development you can decide to turn off permission checks, this way all users will act as admin users.


// disable permission checks
await client.updateAppSettings({
	disable_permissions_checks: true,
});

// re-enable permission checks
await client.updateAppSettings({
	disable_permissions_checks: false,
});
                    

# disable permission checks
client.update_app_settings(disable_permissions_checks=True)

# re-enable permission checks
client.update_app_settings(disable_permissions_checks=False)
                    

// disable permission checks
$update = $client->updateAppSettings([
	'disable_permission_checks' => true
]);


// re-enable permission checks
$update = $client->updateAppSettings([
	'disable_permission_checks' => false
]);
                    

// disable permission checkse
settings := NewAppSettings().SetDisablePermissions(true)
err = client.UpdateAppSettings(settings)
if err != nil {
	log.Fatalf("Err: %v", err)
}
        
// re-enable permission checks
err = client.UpdateAppSettings(NewAppSettings().SetDisablePermissions(false))
if err != nil {
	log.Fatalf("Err: %v", err)
}