Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ID4me
identity-agent-prototype
Commits
dee12b25
Commit
dee12b25
authored
Jan 04, 2022
by
Gaël Berthaud-Müller
Browse files
add notes
parent
103fd2f1
Pipeline
#165
passed with stage
in 1 minute and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
id4me/identity_authority.py
View file @
dee12b25
...
...
@@ -186,6 +186,7 @@ def register_identity_authority(identity_authority, identity_authority_config):
def
require_openid_delegation
(
subject
,
issuer
):
# TODO: make this check parents for oidc record
if
subject
.
endswith
(
'.test'
):
print
(
'Skipping dns delegation check for "%s" because of test domain'
,
subject
)
return
...
...
id4me/views/claims.py
View file @
dee12b25
...
...
@@ -114,6 +114,7 @@ def user_info():
payload
=
decode_validation_token
(
token
)
domain
=
payload
[
'id4me.identifier'
]
if
'id4me.identifier'
in
payload
else
None
subject
=
payload
[
'sub'
]
# TODO: what do we do with that?
# require_openid_delegation(domain, payload['iss'])
try
:
authorized_claims
=
payload
[
'clm'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment