Porsche: fix vehicle auth (#1771)

This commit is contained in:
Andreas Linde 2021-10-23 11:19:17 +02:00 • committed by GitHub
parent 3f74987f02
commit b672502e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ import (
const (
ClientID = "4mPO3OE5Srjb1iaUGWsbqKBvvesya8oA"
EmobilityClientID = "gZLSI7ThXFB4d2ld9t8Cx2DBRvGr1zN2"
EmobilityClientID = "NJOxLv4QQNrpZnYQbb7mCvdiMxQWkHDq"
)
type tokenResponse struct {
@ -130,7 +130,7 @@ func (v *Identity) fetchToken(emobility bool) (tokenResponse, error) {
if emobility {
actualClientID = EmobilityClientID
redirectURI = "https://connect-portal.porsche.com/myservices/auth/auth.html"
redirectURI = "https://my.porsche.com/myservices/auth/auth.html"
}
var CodeVerifier, _ = cv.CreateCodeVerifier()