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

Create new context for OAuth callback to prevent timeout #883

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

eleftherias
Copy link
Contributor

Resolves #873

Previously callBackServer was tied to the caller's context, meaning that it would time out after 5 seconds.
The implementation of callBackServer iterates for up to 300 seconds, waiting for a valid token. Therefore the new timeout for the for the callback context is 300 seconds.

Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

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

Nice! Was that what was causing the need to re-enroll twice?

edit: Sorry, missed the linked issue.

@JAORMX
Copy link
Contributor

JAORMX commented Sep 7, 2023

Thanks!

@JAORMX JAORMX merged commit b8bed31 into mindersec:main Sep 7, 2023
12 checks passed
@JAORMX JAORMX deleted the enroll-timeout branch September 7, 2023 12:01
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.

Repositories are not populated after initial provider enrolment
3 participants