8000 Authentification with SMUD not possible · Issue #114 · tronikos/opower · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Authentification with SMUD not possible #114

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

Open
juchatz opened this issue Mar 20, 2025 · 0 comments
Open

Authentification with SMUD not possible #114

juchatz opened this issue Mar 20, 2025 · 0 comments

Comments

@juchatz
Copy link
juchatz commented Mar 20, 2025

Issue Summary
The Opower integration in Home Assistant was failing with a KeyError: 'redirectUrl' error when attempting to authenticate with SMUD (Sacramento Municipal Utility District).
Investigation Steps

Initial Error Analysis:
The original error occurred because the Opower integration was expecting a 'redirectUrl' parameter in the authentication response, but this parameter was missing.

Authentication Flow Analysis:
I created an external Python script to test the SMUD authentication flow directly, which revealed:

  • SMUD's authentication system has significantly changed
  • The login process now involves different redirection patterns
  • The expected 'redirectUrl' parameter is no longer present in responses
  • The Okta-based SSO that the integration was designed for appears to be gone or changed

Authentication Testing:
I attempted to follow the new authentication flow but were unable to successfully authenticate, possibly due to:

  • Changes in how SMUD handles account selection
  • Additional security measures in the authentication process
  • Potential multi-factor authentication requirements

Conclusions
The Opower integration for SMUD is failing because SMUD has fundamentally changed their authentication system, removing or altering the Okta-based SSO flow that the integration was designed to use. The missing 'redirectUrl' parameter indicates that the underlying API or authentication mechanism has changed substantially.

Versioning:
Opower: 0.9
HA:

  • Core 2025.3.3
  • Frontend 20250306.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0