mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 21:43:55 +00:00
Address PR review comments
- Fix error message: Change 'Missing or invalid' to 'Invalid' for Authorization header format - Update documentation: Add breaking change notice for v0.2.13 auth config structure - Update all auth config examples to use new provider_config structure - Add GitHub token provider documentation - Align GitHub default claims mapping with OAuth2 (use 'roles' instead of 'username') - Add clarification comment that GitHub provider validates GitHub-issued tokens
This commit is contained in:
parent
c2d16c713e
commit
bdf2b50097
4 changed files with 28 additions and 12 deletions
|
|
@ -322,7 +322,10 @@ class GitHubTokenAuthProvider(AuthProvider):
|
|||
self.config = config
|
||||
|
||||
async def validate_token(self, token: str, scope: dict | None = None) -> User:
|
||||
"""Validate a GitHub token by calling the GitHub API."""
|
||||
"""Validate a GitHub token by calling the GitHub API.
|
||||
|
||||
This validates tokens issued by GitHub (personal access tokens or OAuth tokens).
|
||||
"""
|
||||
try:
|
||||
user_info = await self._get_github_user_info(token)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue