Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
54e32cf0
Unverified
Commit
54e32cf0
authored
1 year ago
by
Henrich Neumann
Browse files
Options
Downloads
Patches
Plain Diff
Default enabling national id card number to false
parent
4e87c80a
No related branches found
No related tags found
1 merge request
!417
Add national ID card number as a valid form of identification
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/.env
+1
-1
1 addition, 1 deletion
frontend/.env
gregsite/settings/base.py
+11
-1
11 additions, 1 deletion
gregsite/settings/base.py
with
12 additions
and
2 deletions
frontend/.env
+
1
−
1
View file @
54e32cf0
...
...
@@ -15,7 +15,7 @@ REACT_APP_RESPONSIBLE_ORGANIZATION_LINK='https://www.usit.uio.no/om/organisasjon
REACT_APP_VERIFY_GUEST_EXPLANATION_LINK='https://www.uio.no/tjenester/it/brukernavn-passord/gjestetjenesten/hjelp/verifisering.html'
REACT_APP_DISABLE_NIN_VERIFICATION='false'
REACT_APP_ENABLE_NATIONAL_ID_CARD_NUMBER='
tru
e'
REACT_APP_ENABLE_NATIONAL_ID_CARD_NUMBER='
fals
e'
REACT_APP_DISPLAYCONTACTATUNIT='true'
REACT_APP_DISPLAYCOMMENT='true'
...
...
This diff is collapsed.
Click to expand it.
gregsite/settings/base.py
+
11
−
1
View file @
54e32cf0
...
...
@@ -353,7 +353,7 @@ DEFAULT_IDENTITY_SOURCE = "greg"
DISABLE_NIN_VERIFY
=
False
# Toggle if national id card number can be used as identification to verify guests.
ENABLE_NATIONAL_ID_CARD_NUMBER
=
Tru
e
ENABLE_NATIONAL_ID_CARD_NUMBER
=
Fals
e
# Iga client config used by identity checking view when checking iga
# Take care to also set the check parameter to True if you use this
...
...
@@ -371,6 +371,16 @@ ALLOWED_VERIFIED_ID_TYPES = [
"
norwegian_national_id_card_number
"
,
"
passport_number
"
,
]
if
(
ENABLE_NATIONAL_ID_CARD_NUMBER
and
not
"
norwegian_national_id_card_number
"
in
ALLOWED_VERIFIED_ID_TYPES
):
ALLOWED_VERIFIED_ID_TYPES
.
append
(
"
norwegian_national_id_card_number
"
)
elif
(
not
ENABLE_NATIONAL_ID_CARD_NUMBER
and
"
norwegian_national_id_card_number
"
in
ALLOWED_VERIFIED_ID_TYPES
):
ALLOWED_VERIFIED_ID_TYPES
.
remove
(
"
norwegian_national_id_card_number
"
)
# Which units are excluded when sending notification emails on expiring roles (primary key)
EXCLUDED_UNITS
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment