We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't figure out how to use passport-azure-ad within my express app.
passport-azure-ad
The way my app is initialized:
const app = express(); initialize({ app, apiDoc: './apiDoc.yml', docsPath: 'somePath', promiseMode: true, operations: { getFoo: function(req, res) { res.send('foo'); } } });
I'd like to verify request using passport-azure-ad when getFoo operation is invoked. In standard express app this is done this way:
getFoo
const app = express(); const passport = require("passport"); app.use(passport.initialize()); passport.use(new BearerStrategy(...)); app.get('/getFooUrl', passport.authenticate('oauth-bearer', { session: false }), function(req, res) { log.info('getFoo'); });
Any idea how to correctly invoke authenticate method in express-openapi setup mentioned above?
authenticate
express-openapi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I can't figure out how to use
passport-azure-ad
within my express app.The way my app is initialized:
I'd like to verify request using
passport-azure-ad
whengetFoo
operation is invoked.In standard express app this is done this way:
Any idea how to correctly invoke
authenticate
method inexpress-openapi
setup mentioned above?The text was updated successfully, but these errors were encountered: