mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-26 18:15:16 -04:00
Add 'brand' field to MSC2858 response (#9242)
We've decided to add a 'brand' field to help clients decide how to style the buttons. Also, fix up the allowed characters for idp_id, while I'm in the area.
This commit is contained in:
parent
869667760f
commit
a083aea396
10 changed files with 55 additions and 32 deletions
|
@ -333,6 +333,8 @@ def _get_auth_flow_dict_for_idp(idp: SsoIdentityProvider) -> JsonDict:
|
|||
e = {"id": idp.idp_id, "name": idp.idp_name} # type: JsonDict
|
||||
if idp.idp_icon:
|
||||
e["icon"] = idp.idp_icon
|
||||
if idp.idp_brand:
|
||||
e["brand"] = idp.idp_brand
|
||||
return e
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue