Skip to content

Post otp merge fixes#272

Closed
elad-bar wants to merge 6 commits into
developfrom
post-otp-merge-fixes
Closed

Post otp merge fixes#272
elad-bar wants to merge 6 commits into
developfrom
post-otp-merge-fixes

Conversation

@elad-bar

@elad-bar elad-bar commented May 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Home Assistant native reauthentication for expired or missing Cognito refresh tokens after the OTP login migration.
  • Update Cognito, profile, and AWS token requests to include integration User-Agent headers.
  • Separate AWS credential fetch tracking from Cognito token refresh tracking to avoid incorrect rate limiting.
  • Mark expired cached AWS credentials as failed instead of connected when refresh is rate-limited.
  • Bump version/changelog for v1.0.26b1.

elad-bar added 6 commits May 9, 2026 12:35
…eflect new Cognito OTP login flow integration.
…ve code formatting across multiple files. Adjust README formatting for clarity and enhance import organization in MyDolphin Plus component files.
- Introduced STORAGE_DATA_LAST_AWS_CREDENTIALS_FETCH to track the last fetch timestamp for AWS credentials.
- Updated ConfigManager to include a property for last AWS credentials fetch and methods to update this timestamp.
- Enhanced REST API calls to include user-agent headers using IntegrationInfo.
- Added tests to verify user-agent header inclusion and AWS credentials fetch behavior under rate-limiting conditions.
- Added support for reauthentication when the refresh token expires, allowing users to complete the OTP login flow without needing to remove and re-add the integration.
- Updated README to clarify the reconfiguration process for users upgrading from pre-OTP versions.
- Enhanced flow manager and coordinator to handle reauthentication logic and state management.
- Introduced new strings for reauthentication prompts and success messages.
- Added tests to ensure the reauthentication flow behaves as expected under various scenarios.
- Introduced new strings for successful reauthentication and session expiration prompts in English and Italian translations.
- Enhanced user experience by providing clear instructions for reauthentication when sessions expire.
@elad-bar
elad-bar changed the base branch from main to develop May 9, 2026 10:09
@elad-bar elad-bar closed this May 9, 2026
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

Successfully merging this pull request may close these issues.

1 participant