Skip to content
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

Not automatic token in production mode #84

Open
iBobo5 opened this issue Mar 21, 2022 · 0 comments
Open

Not automatic token in production mode #84

iBobo5 opened this issue Mar 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@iBobo5
Copy link

iBobo5 commented Mar 21, 2022

Hello,
I'm trying to use the library to authenticate a wso2 custom service provider.
To achieve this goal I've started following the official documentation so I've created an application in Asgardeo console and so more.
My problem is this one:

  • In development mode I can correctly finish the authentication flow both with asgardeo application or with our custom wso2 provider and have a valid access token;
  • In production mode (deploy on a server), with wso2 or asgardeo app there is no difference, when I complete the auth flow and get back to my callback url I have to click on login button once more to call the /token api and obtain a valid access token but obviusly the source code is the same.
    I like to specify that if I'll run my app with serve library all works correctly. It's only when the webapp is hosted by the server.

What could be the problem?
Here my auth json

{
"clientID": my client id,
"serverOrigin": wso2 or asgardeo,
"signInRedirectURL": my webapp,
"signOutRedirectURL": my webapp,
"storage":"webWorker",
"resourceServerURLs": [backend wso2 api],
"validateIDToken": false
}

@iBobo5 iBobo5 added the bug Something isn't working label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant