How to get the options of the apostrophe-passport module in the apostrophe-login module?

I need to configure the logout url to logout into the identity provider that I use to authenticate using Oauth. To achieve this objective I implement the method self.addAdminBarItems in the apostrophe-login module. I need to know if I can access here the configuration options of the strategy that I use in the apostrophe-passport module.

The trouble you’ll encounter is that apostrophe-login is configured first.

But, this isn’t hard to fix. Just override addAdminBarItems in that module with an empty method, and put a new one in your own module, or your project level index.js for apostrophe-passport.

1 Like