okta / okta-oidc-js

okta-oidc-js
https://github.com/okta/okta-oidc-js
Other
394 stars 232 forks source link

Angular SDK doesn't work with Angular 7 #335

Closed mraible closed 5 years ago

mraible commented 5 years ago

I'm submitting this issue for the package(s):

I'm submitting a:

Current behavior

I tried upgrading my Angular 7 + Spring Boot example to use Angular 7. It redirects to Okta just fine for login, but has an error in the callback.

ERROR Error: Uncaught (in promise): OAuthError: User is not assigned to the client application.
Error
    at Object../node_modules/@okta/okta-auth-js/lib/errors/OAuthError.js (OAuthError.js:20)
    at __webpack_require__ (bootstrap:78)
    at Object../node_modules/@okta/okta-auth-js/lib/token.js (token.js:21)
    at __webpack_require__ (bootstrap:78)
    at Object../node_modules/@okta/okta-auth-js/lib/clientBuilder.js (clientBuilder.js:23)
    at __webpack_require__ (bootstrap:78)
    at Object../node_modules/@okta/okta-auth-js/reqwest/index.js (index.js:15)
    at __webpack_require__ (bootstrap:78)
screen shot 2018-10-19 at 3 19 14 pm

Expected behavior

I expect everything to work, just like it did with Angular 7 beta 2.

Minimal reproduction of the problem with instructions

See https://github.com/oktadeveloper/okta-spring-boot-2-angular-7-example/pull/4. Or use the following command:

git clone -b angular7-upgrade git@github.com:oktadeveloper/okta-spring-boot-2-angular-7-example.git
mraible commented 5 years ago

Closing because I can't reproduce after creating a new OIDC app.