Aller directement au contenu principal

openhands.server.github_utils

UserVerifier Objects

class UserVerifier()

is_user_allowed

def is_user_allowed(username: str) -> bool

Check if user is allowed based on file and/or sheet configuration

get_github_user

@retry(stop=stop_after_attempt(3),
wait=wait_exponential(multiplier=1, min=1, max=5))
async def get_github_user(token: str) -> str

Get GitHub user info from token.

Arguments:

  • token - GitHub access token

Returns:

github handle of the user