Skip to content

Commit

Permalink
Porsche: fix oauth scoped (#10908)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Nov 25, 2023
1 parent 7b8d44b commit 817bc45
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion vehicle/porsche/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ var (
TokenURL: OAuthURI + "/oauth/token",
AuthStyle: oauth2.AuthStyleInParams,
},
Scopes: []string{"openid", "offline_access"},
Scopes: []string{
"openid", "offline_access", "profile", "email",
"pid:user_profile.vehicles:read",
// "pid:user_profile.addresses:read",
// "pid:user_profile.birthdate:read",
// "pid:user_profile.dealers:read",
// "pid:user_profile.emails:read",
// "pid:user_profile.locale:read",
// "pid:user_profile.name:read",
// "pid:user_profile.phones:read",
// "pid:user_profile.porscheid:read",
// "pid:user_profile.vehicles:read",
// "pid:user_profile.vehicles:register",
},
}
)

Expand Down

0 comments on commit 817bc45

Please sign in to comment.