Skip to content
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

Improve credentials expiration handling #12

Closed
dahlb opened this issue Sep 27, 2022 · 1 comment
Closed

Improve credentials expiration handling #12

dahlb opened this issue Sep 27, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dahlb
Copy link
Owner

dahlb commented Sep 27, 2022

https://github.com/dahlb/hatch_rest_api/blob/1745d9c97e477ae540f7ec3e21eaedde2c49dc8f/src/hatch_rest_api/util_bootstrap.py#L36-L40

Not sure if this is the cause, but if you're interested in eliminating periodical reconnecting to the MQTT endpoint in order to have the credentials unexpired, you can provide a callable delegation, which does it automatically, to the credential provider instead of feeding static credentials.

https://awslabs.github.io/aws-crt-python/api/auth.html#awscrt.auth.AwsCredentialsProvider.new_delegate

@dahlb
Copy link
Owner Author

dahlb commented Sep 28, 2022

looks like this would just change the expiration tracking from the iot connection to the aws token so no changing for now

@dahlb dahlb closed this as completed Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant