Skip to content

Conversation

@simonbs
Copy link
Contributor

@simonbs simonbs commented Nov 8, 2023

This PR introduces ForgivingProjectDataSource which returns an empty set of projects when we fail to fetch the user's access token.

These changes are introduced to improve our support for guest users. When a guest user is incorrectly configured to have access to a non-existing repository, we will not be able to create their access token as it is tied to a list of repositories. Therefore we regard the user as having access to no repositories when we fail to obtain their access token.

This logic is in theory applied for host users, i.e. GitHub users too, however, we have other logic in place to ensure that we have a valid access token for those users before they are even allowed to login. This is not the case for guest users as that could prevent them from logging in when they are configured to have access to non-existing repositories.

@simonbs simonbs self-assigned this Nov 8, 2023
Base automatically changed from enhancement/guest-login to develop November 8, 2023 12:55
@simonbs simonbs marked this pull request as ready for review November 8, 2023 13:00
@simonbs simonbs merged commit 207cd13 into develop Nov 8, 2023
@simonbs simonbs deleted the enhancement/guest-user-access-token-unavailable branch November 8, 2023 13: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.

1 participant