这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(oidc): clenup client internal promises when requests are finished… #1417

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

Merged

Conversation

wermanoid
Copy link
Contributor

… (release)

A picture tells a thousand words

Before this PR

In case if some request fails class Oidc used to keep promises internally with rejected state, so that leads to situation, that rejected promise is always returned for any sequential method call. That prevents to recover app connection to IDP after connection errors. (Mostly happens when internet disappears for some time or server was recently shut down for any reason)

After this PR

Oidc could execute method calls correctly, when environment is up and running after failure

@wermanoid wermanoid force-pushed the fix/oicd-promise-cleanup branch from 558b25c to ac51387 Compare July 15, 2024 13:28
@wermanoid wermanoid force-pushed the fix/oicd-promise-cleanup branch from ac51387 to 3bd5bc6 Compare July 15, 2024 13:32
Copy link
Contributor

@guillaume-chervet guillaume-chervet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @wermanoid

@guillaume-chervet guillaume-chervet merged commit b099078 into AxaFrance:main Jul 15, 2024
12 of 13 checks passed
@wermanoid wermanoid deleted the fix/oicd-promise-cleanup branch July 16, 2024 07:18
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.

2 participants