Skip to content

Commit

Permalink
feat(admin): Display the date of OIDC authentication method
Browse files Browse the repository at this point in the history
Co-Authored-By: Jérémy PLUQUET <[email protected]>
Co-Authored-By: Andreia Pena <[email protected]>
  • Loading branch information
3 people committed Feb 28, 2025
1 parent b08dae7 commit 4445c6e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ export default class AuthenticationMethod extends Component {
});
}

@action
oidcLastLoggedAtAuthenticationMethod(oidc) {
const method = this.authenticationMethods.find((method) => method.identityProvider === oidc.code);
return method ? this._displayAuthenticationMethodDate(method.lastLoggedAt) : null;
}

@action
onChangeNewEmail(event) {
this.newEmail = event.target.value;
Expand Down Expand Up @@ -388,6 +394,7 @@ export default class AuthenticationMethod extends Component {
/>
{{/if}}
</td>
<td>{{this.oidcLastLoggedAtAuthenticationMethod userOidcAuthenticationMethod}}</td>
<td class="authentication-method-table__actions-column">
{{#if this.accessControl.hasAccessToUsersActionsScope}}
<div>
Expand Down

0 comments on commit 4445c6e

Please sign in to comment.