@@ -73,8 +73,8 @@ A custom mapping provider must specify the following methods:
73
73
* ` async def map_user_attributes(self, userinfo, token, failures) `
74
74
- This method must be async.
75
75
- Arguments:
76
- - ` userinfo ` - A ` authlib.oidc.core.claims.UserInfo ` object to extract user
77
- information from.
76
+ - ` userinfo ` - An [ ` authlib.oidc.core.claims.UserInfo ` ] ( https://docs.authlib.org/en/latest/specs/oidc.html#authlib.oidc.core.UserInfo )
77
+ object to extract user information from.
78
78
- ` token ` - A dictionary which includes information necessary to make
79
79
further requests to the OpenID provider.
80
80
- ` failures ` - An ` int ` that represents the amount of times the returned
@@ -91,7 +91,13 @@ A custom mapping provider must specify the following methods:
91
91
` None ` , the user is prompted to pick their own username. This is only used
92
92
during a user's first login. Once a localpart has been associated with a
93
93
remote user ID (see ` get_remote_user_id ` ) it cannot be updated.
94
- - ` displayname ` : An optional string, the display name for the user.
94
+ - ` confirm_localpart ` : A boolean. If set to ` True ` , when a ` localpart `
95
+ string is returned from this method, Synapse will prompt the user to
96
+ either accept this localpart or pick their own username. Otherwise this
97
+ option has no effect. If omitted, defaults to ` False ` .
98
+ - ` display_name ` : An optional string, the display name for the user.
99
+ - ` emails ` : A list of strings, the email address(es) to associate with
100
+ this user. If omitted, defaults to an empty list.
95
101
* ` async def get_extra_attributes(self, userinfo, token) `
96
102
- This method must be async.
97
103
- Arguments:
0 commit comments