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

Implementation of PKCE #17683

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

loebse
Copy link
Contributor

@loebse loebse commented Dec 10, 2024

@andig : I changed the auth flow to include PKCE

@andig andig merged commit 4bffaa5 into evcc-io:master Dec 10, 2024
6 checks passed
@andig
Copy link
Member

andig commented Dec 10, 2024

Oh, should use Go pkce instead of custom, but we can change that later. Much appreciated, thank you!

AccessToken string `graphql:"access_token"`
RefreshToken string `graphql:"refresh_token"`
ExpiresIn int `graphql:"expires_in"`
AccessToken string `json:"access_token"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…and this looks like your normal oauth2.Token?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like

{
  "scope": "openid profile email customer:attributes",
  "client_id": "l3oopkc_10",
  "grntid": "pgy8pMOexIftRPxn2d1zpzEtXKAvaTh5",
  "iss": "https://polestarid.eu.polestar.com",
  "iat": 1733862755,
  "jti": "j0WZYyVTPB58DMAsSkImGN",
  "market": "DE",
  "acr": "urn:polestarid:aal:bronze:any",
  "aud": "l3oopkc_10",
  "firstName": "Thomas",
  "lastName": "Leininger",
  "sub": "750d8bdf-cfdd-4b57-8863-545b963598f2",
  "mobile": "+49**********",
  "pi.sri": "yZ-bFpFvgeXMjGdKSLOmhHUoR58..WKVj.MJUGMYhCMP1AwOj644WNysHjm",
  "userName": "rostbeule@gmail.com",
  "email": "rostbeule@gmail.com",
  "exp": 1733863055
}

But facing 2 warnings:
Looks like your JWT header and signature is not encoded correctly using base64 blablabla...

@andig andig added the vehicles Specific vehicle support label Dec 12, 2024
jonilala796 pushed a commit to jonilala796/evcc that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vehicles Specific vehicle support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants