Skip to content

Commit

Permalink
web/admin: fix access token list calling wrong API (cherry-pick #10434)…
Browse files Browse the repository at this point in the history
… (#10435)

web/admin: fix access token list calling wrong API (#10434)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L <jens@goauthentik.io>
  • Loading branch information
gcp-cherry-pick-bot[bot] and BeryJu authored Jul 10, 2024
1 parent 3fe129e commit 3f663ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/elements/oauth/UserAccessTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ export class UserOAuthAccessTokenList extends Table<TokenModel> {
renderToolbarSelected(): TemplateResult {
const disabled = this.selectedElements.length < 1;
return html`<ak-forms-delete-bulk
objectLabel=${msg("Refresh Tokens(s)")}
objectLabel=${msg("Access Tokens(s)")}
.objects=${this.selectedElements}
.usedBy=${(item: ExpiringBaseGrantModel) => {
return new Oauth2Api(DEFAULT_CONFIG).oauth2RefreshTokensUsedByList({
return new Oauth2Api(DEFAULT_CONFIG).oauth2AccessTokensUsedByList({
id: item.pk,
});
}}
.delete=${(item: ExpiringBaseGrantModel) => {
return new Oauth2Api(DEFAULT_CONFIG).oauth2RefreshTokensDestroy({
return new Oauth2Api(DEFAULT_CONFIG).oauth2AccessTokensDestroy({
id: item.pk,
});
}}
Expand Down

0 comments on commit 3f663ca

Please sign in to comment.