Skip to content

responseType isn't being set properly in AuthConfig constant #430

New issue

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

Closed
bvorjohan opened this issue Sep 20, 2018 · 4 comments
Closed

responseType isn't being set properly in AuthConfig constant #430

bvorjohan opened this issue Sep 20, 2018 · 4 comments

Comments

@bvorjohan
Copy link

bvorjohan commented Sep 20, 2018

I am trying to use this with the Spotify API, and I have my AuthConfig constant set as

{
  responseType: 'code',
  clientId: '43566db1a0f74438838b74fa71d658a4',
  redirectUri: window.location.origin + '/index.html',
  loginUrl: 'https://accounts.spotify.com/authorize',
}

however, the API that actually gets run is

https://accounts.spotify.com/authorize?
response_type=id_token%20token&
client_id=43566db1a0f74438838b74fa71d658a4&
state=NWoRQ6LkhH5jt9wE5vwpYdNrqEoDcGmBlTA62tBl&
redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Findex.html&
scope=openid%20profile&
nonce=NWoRQ6LkhH5jt9wE5vwpYdNrqEoDcGmBlTA62tBl

it looks like the module isn't accepting the responseType correctly, since the API call sets response_type=id_token token.

@FlorianSW
Copy link

Should be fixed in the next version by #397.

@bvorjohan
Copy link
Author

That's great. Thanks for the update.

@rsivan
Copy link

rsivan commented Sep 20, 2019

Hello bvorjohan: I too am trying to use this module with Spotify, however I am getting an Illegal Scope response.
Can you share your code?

Thanks

@Hasan-git
Copy link

Same here, 'openid' should be removed from scope list. but, actually still trying to figure a way to remove it

Hello bvorjohan: I too am trying to use this module with Spotify, however I am getting an Illegal Scope response.
Can you share your code?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants