okta / samples-nodejs-express-4

Express 4 samples. Will publish an artifact that can be consumed by end-to-end sample repos
Other
120 stars 118 forks source link

OAuthError: The response type is not supported by the authorization server. #59

Closed emmanuelframos-zz closed 4 years ago

emmanuelframos-zz commented 5 years ago

1 - Click on Login

2 - When redirected to http://localhost:3000/implicit/callback:

OAuthError: The response type is not supported by the authorization server. Configured response types: [code].

yimingsue commented 4 years ago

Same error blocked me. Do you have any update on this?

emmanuelframos-zz commented 4 years ago

I moved to another library.

aarongranick-okta commented 4 years ago

I noticed that your app is using a redirect of http://localhost:3000/implicit/callback. This is the default callback for our SPA samples. I think it's likely that you used the SPA client id instead of the client id for a "standard" (server-side) web application.

This sample (express/nodejs) is meant to demonstrate auth with a "standard" web application using the authorization-code flow. The default callback for this app is http://localhost:8080/authorization-code/callback Be sure you are using this "standard" web app as the CLIENT_ID environment variable (or in the testenv file).

Using the wrong clientId can cause this error. The SPA_CLIENT_ID is used only by the resource-server sample