From 16f8b6d4fb7ca8f8663deb64c78ceb817fd81d85 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Tue, 26 Sep 2023 10:40:36 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20not=20calling=20log?= =?UTF-8?q?out=20properly=20in=20OIDC=20(#1921)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/core/addon/authenticators/oidc.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addons/core/addon/authenticators/oidc.js b/addons/core/addon/authenticators/oidc.js index 085278899..67bd1cb97 100644 --- a/addons/core/addon/authenticators/oidc.js +++ b/addons/core/addon/authenticators/oidc.js @@ -33,6 +33,18 @@ export default class OIDCAuthenticator extends BaseOIDCAuthenticator { return adapter.buildURL('auth-method', authMethodID, options, 'findRecord'); } + /** + * Generates a scope URL with which to deauthenticate. + * @override + * @param {object} options + * @param {string} scopeID + * @return {string} + */ + buildDeauthEndpointURL({ id }) { + const adapter = this.store.adapterFor('application'); + return adapter.buildURL('auth-token', id, {}, 'findRecord'); + } + /** * Generates an auth token validation URL used to check tokens on restoration. * @override