-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove setup from Postgresql realm authentication
The realm should not modify the user database but it has to be provided and configured in advance. However, if a file is provided it is used during the initialisation and not during the authentication.
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE "users" ( | ||
"id" VARCHAR PRIMARY KEY, | ||
"full_name" VARCHAR, | ||
"password" VARCHAR | ||
); | ||
|
||
CREATE TABLE "user_certs" ( | ||
"user_id" VARCHAR NOT NULL, | ||
"cert_id" VARCHAR NOT NULL, | ||
"data" BYTEA, | ||
PRIMARY KEY ("user_id", "cert_id") | ||
); | ||
|
||
CREATE TABLE "groups" ( | ||
"id" VARCHAR PRIMARY KEY, | ||
"description" VARCHAR | ||
); | ||
|
||
CREATE TABLE "group_members" ( | ||
"group_id" VARCHAR NOT NULL, | ||
"user_id" VARCHAR NOT NULL, | ||
PRIMARY KEY ("group_id", "user_id") | ||
); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters