feat: 🎸 Populate subject for OIDC account name displays (#2757)
OIDC accounts are guaranteed to have a subject claim which we should display. Currently we only look at email and full_name which are all optional for OIDC claims. Also added deep links for accounts. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16634
This commit is contained in:
1 parent
9dd1617b57
commit
2db63ae2f8
3 files changed
+89
-8
No files matched your search
@@ -46,10 +46,14 @@
|
||||
<:body as |B|>
|
||||
<B.Tr>
|
||||
<B.Td>
|
||||
<span class='hds-font-weight-semibold'>{{#if
|
||||
(can 'read accounts' B.data)
|
||||
}}
|
||||
{{B.data.accountName}}
|
||||
<span class='hds-font-weight-semibold'>
|
||||
{{#if (can 'read accounts' B.data)}}
|
||||
<LinkTo
|
||||
@route='scopes.scope.auth-methods.auth-method.accounts.account'
|
||||
@models={{array B.data.auth_method_id B.data.id}}
|
||||
>
|
||||
{{B.data.accountName}}
|
||||
</LinkTo>
|
||||
{{else}}
|
||||
{{B.data.displayName}}
|
||||
{{/if}}
|
||||
|
||||
Reference in new issue
Block a user