-
Notifications
You must be signed in to change notification settings - Fork 45
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
Try refreshing tokens as needed #73
Conversation
@matan129 thank you very much for this contribution. Does the user need to set up their AWS config in any particular way for this to work? (I'm just thinking about the README file and whether some guidance/instructions might be needed) |
Nope. This just make aws2-wrap support already-valid configs which utilize Other configs should keep their normal non-refreshy behavior. Having said that, I didn't check configs without |
@pcolmer anything else I should do? |
No, I don't think so. My apologies for being "absent" on this ... workload has been through the roof lately. I've tried running the updated code on my machine against both types of profiles and it is working fine. Thank you very much for this contribution. It is really appreciated. |
@matan129 I'm trying to add the function docstrings and I'm unclear what |
@matan129 I've tried to sort out some of the parameter types as well. I'm a bit concerned that although It could be that the tests are too "lazy" in their approach, for example passing "jim" as a value to a parameter which is now defined as type ProfileDef. The purpose of the tests is to try to ensure that a new release of |
Consider this AWS config:
Then I'd consider Regarding type issue, I'm not sure what you mean. I don't see any warning when running |
I'm not seeing it from
and VS Code warns:
As I said, it isn't breaking the tests per se ... but one of the reasons why typing and the tests were introduced were to ensure that the functions didn't break compatibility with anything else using them. I think that some of the incompatibilities are showing up because of lazy tests but I can't be entirely sure - it has been a while since they were written and I'd have to look back over the git history to see who wrote them :) (Probably me, knowing my luck!) |
Should solve #71.
Tested locally with
sso_session
setup, but I'd appreciate verification with other setups.Edit: Something is wrong whensso_session
is combined withsource_profile
, I'll fix and update.