jhipster / generator-jhipster-ionic

Ionic for JHipster ✨

Home Page:https://developer.okta.com/blog/2022/05/12/ionic-angular-jhipster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to get okta-ionic token

alexander090496 opened this issue · comments

I am from an Ionic app, the direction process to Okta works normal, I proceed to login and it does it normally, the redirection to the mobile app is done but I have the following problem: POST https: // DOMAIN / oauth2 / v1 / token 401
erroeokta

core.js:6210 ERROR Error: Uncaught (in promise): HttpErrorResponse: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":401,"statusText":"OK","url":"https://dev-4896801.okta.com/oauth2/v1/token","ok":false,"name":"HttpErrorResponse","message":"Http failure response for https://dev-4896801.okta.com/oauth2/v1/token: 401 OK","error":{"error":"invalid_client","error_description":"Client authentication failed. Either the client or the client

You have to use a custom authorization server for this to work, you can't use your org authorization server. There should be one called "default" that's created for you in your developer account. These docs explain the difference between types of authorization servers. Please reopen this issue if it doesn't solve your problem.