Merge branch 'staging' into dev
This commit is contained in:
commit
2ae341d432
2 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,8 @@ from ipsilon.util import config as pconfig
|
||||||
import fasjson_client
|
import fasjson_client
|
||||||
|
|
||||||
|
|
||||||
|
# For OpenID Connect: https://openid.net/specs/openid-connect-basic-1_0.html#StandardClaims
|
||||||
|
# For OpenID: https://openid.net/specs/openid-simple-registration-extension-1_0.html#response_format
|
||||||
fasjson_mapping = [
|
fasjson_mapping = [
|
||||||
['email', 'email'],
|
['email', 'email'],
|
||||||
['username', 'nickname'],
|
['username', 'nickname'],
|
||||||
|
@ -19,6 +21,9 @@ fasjson_mapping = [
|
||||||
['gpgkeyids', 'gpg_keyids'],
|
['gpgkeyids', 'gpg_keyids'],
|
||||||
['groups', 'groups'],
|
['groups', 'groups'],
|
||||||
['agreements', 'agreements'],
|
['agreements', 'agreements'],
|
||||||
|
# Plain OpenID (sreg)
|
||||||
|
['timezone', 'timezone'],
|
||||||
|
['human_name', 'fullname'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,4 +15,8 @@ class OpenidCExtension(OpenidCExtensionBase):
|
||||||
'display_name': 'Fedora Account Signed Agreements',
|
'display_name': 'Fedora Account Signed Agreements',
|
||||||
'claims': ['agreements']
|
'claims': ['agreements']
|
||||||
},
|
},
|
||||||
|
'https://id.fedoraproject.org/scope/fas-attributes': {
|
||||||
|
'display_name': 'Fedora Account Attributes',
|
||||||
|
'claims': ['ircnick', 'gpg_keyid', 'ssh_key', 'privacy']
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue