torii
Version:
A set of clean abstractions for authentication in Ember.js
24 lines (18 loc) • 743 B
JavaScript
import Oauth2 from 'torii/providers/oauth2-code';
import { configurable } from 'torii/configuration';
export default Oauth2.extend({
name: 'stripe-connect',
baseUrl: 'https://connect.stripe.com/oauth/authorize',
// additional url params that this provider requires
requiredUrlParams: [],
optionalUrlParams: ['stripe_landing', 'always_prompt'],
responseParams: ['code', 'state'],
scope: configurable('scope', 'read_write'),
stripeLanding: configurable('stripeLanding', ''),
alwaysPrompt: configurable('alwaysPrompt', 'false'),
redirectUri: configurable('redirectUri', function() {
// A hack that allows redirectUri to be configurable
// but default to the superclass
return this._super();
})
});