-
Notifications
You must be signed in to change notification settings - Fork 2
authentication
GitHub Action edited this page Jul 7, 2023
·
1 revision
TODO
Authentication (and authorization) can be fully disabled through environment variables in backend and frontend:
Set the following environment variables:
Authentication__debugAllowAll=true
Authorization__debugAllowAll=true
Set the following environment variable:
REACT_APP_DISABLE_AUTH=true
After disabling authentication and authorization, omnikeeper works without an IDP, such as Keycloak. Note that all user interactions (reads, writes) will be attributed to the same user "anonymous".
TODO
TODO
import random
import uuid
# generate a consistent UUID from the user's uid
rnd = random.Random()
rnd.seed(user.uid)
user_uuid = uuid.UUID(int=rnd.getrandbits(128), version=4)
return {
"id": user_uuid,
"resource_access": {
"omnikeeper": {
"roles": ["__ok_superuser"] # TODO
}
}
}