You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Make the claims_imports optional in the config
This commit is contained in:
@ -300,6 +300,7 @@ pub struct Provider {
|
||||
|
||||
/// How claims should be imported from the `id_token` provided by the
|
||||
/// provider
|
||||
#[serde(default)]
|
||||
pub claims_imports: ClaimsImports,
|
||||
}
|
||||
|
||||
|
@ -1751,7 +1751,6 @@
|
||||
}
|
||||
],
|
||||
"required": [
|
||||
"claims_imports",
|
||||
"client_id",
|
||||
"id",
|
||||
"issuer",
|
||||
@ -1769,6 +1768,24 @@
|
||||
},
|
||||
"claims_imports": {
|
||||
"description": "How claims should be imported from the `id_token` provided by the provider",
|
||||
"default": {
|
||||
"displayname": {
|
||||
"action": "ignore",
|
||||
"template": null
|
||||
},
|
||||
"email": {
|
||||
"action": "ignore",
|
||||
"set_email_verification": "import",
|
||||
"template": null
|
||||
},
|
||||
"localpart": {
|
||||
"action": "ignore",
|
||||
"template": null
|
||||
},
|
||||
"subject": {
|
||||
"template": null
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/ClaimsImports"
|
||||
|
Reference in New Issue
Block a user