chore: 🤖 Update deauthenticate params to still use org_id

Instead of session invalidation being provided: { scope: { id: scopeID }
}, it gets: {authenticator: "authenticator:password", org_id: "1"}.
This commit is contained in:
Susmitha Girumala committed 2020-07-27 14:34:39 -04:00
1 parent bbbe3e2819
commit 330a7ceb3b
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export default class PasswordAuthenticator extends BasePasswordAuthenticator {
* @param {string} scopeID
* @return {string}
*/
buildDeauthEndpointURL({ scope: { id: scopeID } }) {
buildDeauthEndpointURL({ authenticator, org_id: scopeID }) {
const adapter = this.store.adapterFor('application');
const options = { adapterOptions: { method: 'deauthenticate' } };
return adapter.buildURL('scope', scopeID, options, 'findRecord');
+1
View File
@@ -4,6 +4,7 @@ actions:
dismiss: Dismiss
save: Save
help: Need help?
deauthenticate: Deauthenticate
resources:
user: User
users: Users