manjeshpv / node-oauth2-server-implementation

Using oauth2-server: 3.0.0-b2 & Supports MongoDB, MySQL, PostgreSQL, MSSQL & SQLite
216 stars 103 forks source link

Q: using this with ember-simple-auth #2

Closed eighteight closed 8 years ago

eighteight commented 8 years ago

I am upgrading node-oauth2-server from previous version (v 2) to this implementation. In order for this implementation to work with the existing simple-ember-auth (which worked with v2 of the node-oauth2-server), I am putting this on the server side

...
        var request = new Request(req);
        request.body.response_type = 'code';
        request.body.client_id = 'MY CLIENT';
        request.body.state = 'MY STATE';
        request.body.redirect_uri = 'MY REDIRECT URL';

        var response = new Response(res);

        return oauth.authorize(request, response).then(function(success) {
...

Could you suggest where am I supposed to set the response_type, client_id, state and redirect_url in ember-simple-auth?

Thanks.

eighteight commented 8 years ago

non issue, closing