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

Question: how do you get CONNECT token without username/pw #66

Closed
dirkbonhomme opened this issue Jan 3, 2023 · 2 comments
Closed

Question: how do you get CONNECT token without username/pw #66

dirkbonhomme opened this issue Jan 3, 2023 · 2 comments

Comments

@dirkbonhomme
Copy link

Hi,

We're currently trying to implement Škoda authentication to Node.js while trying to use a pure oAuth flow. It seems to work fine to get either a CONNECT token OR a TECHNICAL token but we don't see how we can get both without the user having to enter his email + password twice:

APP => Redirect to https://identity.vwgroup.io/oidc/v1/authorize with CONNECT|TECHNICAL client id => User provides email+password => Redirect to APP with code

From my understanding, you only parse the html on https://identity.vwgroup.io/oidc/v1/authorize once and only enter the email+password once to get the first token. How are you able to get the second token? Is it because of a cookie jar?

Hope you can help us figure this out. Thanks a lot!

@Farfar
Copy link
Collaborator

Farfar commented Jan 3, 2023

Hi!
Yes when you have logged on once (redirected to signin-service URL) and complete the login form you should have gotten session cookies that enables authorization without logon a second time.
If you look at the code there's special handling if "signin-service" string is encountered in location header URL.

@dirkbonhomme
Copy link
Author

Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants