Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions collections/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ saml_id:
minLength: 1
restriction_mode: B
description: unique-key from IdP for SAML login
keycloak_id:
type: string
minLength: 1
restriction_mode: B
description: unique-key from Keycloak for OIDC login (sub claim)
pronoun:
type: string
maxLength: 32
Expand Down
4 changes: 3 additions & 1 deletion dev/sql/schema_relational.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

-- schema_relational.sql for initial database setup OpenSlides
-- Code generated. DO NOT EDIT.
-- MODELS_YML_CHECKSUM = 'e0d5579236d105d49e687ac5999f0184'
-- MODELS_YML_CHECKSUM = '14017a938413f084ab18b4a3d4418765'


-- Function and meta table definitions
Expand Down Expand Up @@ -1392,6 +1392,7 @@ CREATE TABLE user_t (
username varchar(256) NOT NULL,
member_number varchar(256),
saml_id varchar(256) CONSTRAINT minlength_saml_id CHECK (char_length(saml_id) >= 1),
keycloak_id varchar(256) CONSTRAINT minlength_keycloak_id CHECK (char_length(keycloak_id) >= 1),
pronoun varchar(32),
title varchar(256),
first_name varchar(256),
Expand All @@ -1416,6 +1417,7 @@ CREATE TABLE user_t (


comment on column user_t.saml_id is 'unique-key from IdP for SAML login';
comment on column user_t.keycloak_id is 'unique-key from Keycloak for OIDC login (sub claim)';
comment on column user_t.organization_management_level is 'Hierarchical permission level for the whole organization.';


Expand Down
5 changes: 5 additions & 0 deletions models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4407,6 +4407,11 @@ user:
minLength: 1
restriction_mode: B
description: unique-key from IdP for SAML login
keycloak_id:
type: string
minLength: 1
restriction_mode: B
description: unique-key from Keycloak for OIDC login (sub claim)
pronoun:
type: string
maxLength: 32
Expand Down