mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Ability to pass OAuth callback dynamically
This commit is contained in:
parent
8151c6b9c3
commit
cc178e1cb2
@ -262,7 +262,8 @@ module.exports = {
|
||||
if (!_.get(config, 'enabled')) {
|
||||
return ctx.badRequest(null, 'This provider is disabled.');
|
||||
}
|
||||
|
||||
// Ability to pass OAuth callback dynamically
|
||||
grantConfig[provider].callback = ctx.query && ctx.query.callback ? ctx.query.callback : grantConfig[provider].callback;
|
||||
return grant(grantConfig)(ctx, next);
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user