Package org.techbd.service.http
Class GitHubUsersService
java.lang.Object
org.techbd.service.http.GitHubUsersService
@ConfigurationProperties(prefix="org.techbd.service.http.github")
@Service
public class GitHubUsersService
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionisAuthorizedUser
(String gitHubLoginID) Check GitHub to see if the provided userName is an authorized user.
-
Constructor Details
-
GitHubUsersService
public GitHubUsersService()
-
-
Method Details
-
isAuthorizedUser
Check GitHub to see if the provided userName is an authorized user. This method will always go back to GitHub and load all users before returning result. User is responsible for caching to reduce performance hits.- Parameters:
gitHubLoginID
- the GitHub userName to check- Returns:
- non-empty AuthenticatedUser if found authorized or empty if not authorized
-