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