okta / samples-nodejs-express-4

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

Unable to Authenticate using Okta Hosted Login #49

Closed digitalrinaldo closed 6 years ago

digitalrinaldo commented 6 years ago

We use Okta for internal Infrastructure and I have been unable to authenticate. I am able to login and my browser redirects and ends up doing a POST to the entry point and I get a 404. I have tried two other node.js express libraries and have the same result. One of the other libraries ends up doing constant redirects. My issuer's urls do not follow this convention.

Issuer - This is the URL of the authorization server that will perform authentication. All Developer Accounts have a "default" authorization server. The issuer is a combination of your Org URL (found in the upper right of the console home page) and /oauth2/default. For example, https://dev-1234.oktapreview.com/oauth2/default.

My issuer URL has the name of the app, the issuer id and ends in sso/saml

robertjd commented 6 years ago

HI @digitalrinaldo , our bad for not replying sooner. This example app is meant to example the implicit flow, which is an OAuth 2.0 flow. Unfortunately we don't have similar examples for SAML flows, which is what it looks like you're trying to use here? Please let me know if this is not the case? I will close this issue for now, but you can re-open if needed. Thanks!