Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pyporscheconnectapi/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Client configuration constants."""

AUTHORIZATION_SERVER = "identity.porsche.com"
REDIRECT_URI = "my-porsche-app://auth0/callback"
# The app's HTTPS app link. Porsche stopped accepting the custom schemes
# (my-porsche-app://, my-porsche-app-auth0://) for this client in November 2026.
REDIRECT_URI = "https://security.porsche.com/auth/en-GB/app/callback"
AUDIENCE = "https://api.porsche.com"
CLIENT_ID = "XhygisuebbrqQ80byOuU5VncxLIm8E6H"
X_CLIENT_ID = "41843fb4-691d-4970-85c7-2673e8ecef40"
Expand Down
2 changes: 1 addition & 1 deletion pyporscheconnectapi/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def get_and_extract_location_params(self, url, params=None):
headers=self.headers,
)
if resp.status_code != 302:
msg = "Could not fetch authorization code"
msg = f"Could not fetch authorization code: HTTP {resp.status_code}"
raise PorscheExceptionError(msg)

location = resp.headers["Location"]
Expand Down
Loading