all: [
{ path: '/auth/:provider', action: 'auth'},
{ path: '/auth/:provider/:state', action: 'auth'}
]
exports.action = {
name: 'auth',
description: 'Authenticates a connection based on provider and the state of the process',
blockedConnectionTypes: [],
outputExample: {},
matchExtensionMimeType: false,
version: 1.0,
toDocument: true,
inputs: {
'required': ['provider'],
'optional': ['state']
},
run: function(api, connection, next) {
console.log('entering action.auth.run');
console.log(connection.params);
// your logic here
next(connection, true);
}
};
entering action.auth.run
{ action: 'auth', apiVersion: 1 }
--
You received this message because you are subscribed to the Google Groups "actionHero.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionhero-j...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.