Skip to content

Commit

Permalink
link oauth2 client for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Jan 2, 2024
1 parent e7afb98 commit dffeb9b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions OryAdmin/Components/Pages/Identities/Users/View.razor
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ else
<thead>
<tr>
<td>Remember</td>
<td>Client name</td>
<td>Grant scope</td>
<td>Grant access token audience</td>
<td>Handled at</td>
<td>Refresh token expires at</td>
</tr>
Expand All @@ -164,7 +164,7 @@ else
@foreach (var session in _oauth2Sessions!)
{
<tr>
@if (session.ConsentRequest.Skip)
@if (session.ConsentRequest.Skip || session.ConsentRequest._Client.SkipConsent)
{
<td>Consent skipped</td>
}
Expand All @@ -179,8 +179,12 @@ else
<td>No</td>
}
}
<td>
<a href="oauth2/clients/@session.ConsentRequest._Client.ClientId">
@session.ConsentRequest._Client.ClientName
</a>
</td>
<td>@(session.GrantScope == null ? "-" : string.Join(", ", session.GrantScope))</td>
<td>@(session.GrantAccessTokenAudience == null ? "-" : string.Join(", ", session.GrantAccessTokenAudience))</td>
<td>@session.HandledAt</td>
<td>@(session.ExpiresAt != null ? session.ExpiresAt?.RefreshToken : "-")</td>
</tr>
Expand Down

0 comments on commit dffeb9b

Please sign in to comment.