React
Auth Settings Confused about "Auth Settings"?
Let us know how we can improve our documentation:
Confused about "Auth Settings"?
Let us know how we can improve our documentation:
LAST EDIT Feb 16 2021
- On This Page:
- Enable Development Tokens
- Disable Permission Checking
Enable Development TokensCopied!Confused about "Enable Development Tokens"?
Let us know how we can improve our documentation:
Confused about "Enable Development Tokens"?
Let us know how we can improve our documentation:
Token validation can be disabled for development apps. This allows you to use development tokens and work on user token provisioning later on.
1
2
3
4
5
6
7
8
9
// 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,
});
1
2
3
4
5
# 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)
1
2
3
4
5
6
7
8
9
10
// 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
]);
1
2
3
4
5
6
7
8
9
10
11
12
// 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 CheckingCopied!Confused about "Disable Permission Checking"?
Let us know how we can improve our documentation:
Confused about "Disable Permission Checking"?
Let us know how we can improve our documentation:
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.
1
2
3
4
5
6
7
8
9
// disable permission checks
await client.updateAppSettings({
disable_permissions_checks: true,
});
// re-enable permission checks
await client.updateAppSettings({
disable_permissions_checks: false,
});
1
2
3
4
5
# disable permission checks
client.update_app_settings(disable_permissions_checks=True)
# re-enable permission checks
client.update_app_settings(disable_permissions_checks=False)
1
2
3
4
5
6
7
8
9
10
// disable permission checks
$update = $client->updateAppSettings([
'disable_permission_checks' => true
]);
// re-enable permission checks
$update = $client->updateAppSettings([
'disable_permission_checks' => false
]);
1
2
3
4
5
6
7
8
9
10
11
12
// 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)
}