Files

2.1 KiB

Authentication and token architecture

Static facts

The APK uses Auth0-related Android SDK classes and configures the EnBW myEnergyKey identity service:

  • Auth0/domain reference: myenergykey.com
  • Additional legacy/login reference: pro-login.enbw.com
  • Android callback: emob://myenergykey.com/android/com.enbw.ev/callback
  • Auth0 SDK storage preference name: com.auth0.authentication.storage
  • Google web client resource: default_web_client_id = 481460993887-g3v5s96roorfld4ch40dto2n0115rot8.apps.googleusercontent.com

The web client ID is a public client identifier, not a secret. It should not be treated as a credential.

The startup code also constructs a business-system/scope enum containing entries such as emp, mobilityplus-engage, smart-mobility, permission, airship, lms, cmdm, and enbw-collect. The exact token request, audience, and resulting claims have not been captured.

Storage observations

The application uses app-private SharedPreferences for Auth0 SDK storage. The manifest sets android:allowBackup="false", so ordinary Android backup portability is not an identified path from this artifact.

No access token, refresh token, password, or private key belongs in this repository. Any runtime capture must stay outside Git and be redacted before analysis notes are updated.

What is not yet known

  • Exact Auth0 client ID used by the native login flow.
  • Exact audience and scopes in the authorization request.
  • Authorization server discovery response and issuer metadata.
  • Which API host corresponds to each Retrofit interface at runtime.
  • Access-token claims and API-side enforcement behavior.
  • Refresh-token rotation/reuse behavior.
  • Whether the legacy login host is reachable or only retained for compatibility.

Safe next step

Use a permitted test account and a local capture environment to observe the normal login and one read-only API request. Record only redacted request metadata, endpoint paths, response status, and DTO shape. Never commit cookies, authorization headers, tokens, personal data, invoices, payment details, or raw captures.