mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-17 10:28:11 +00:00
change value of test token for clarity
This commit is contained in:
parent
d01d3d998b
commit
a996ce2af2
1 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ async def mock_auth_jwks_response(*args, **kwargs):
|
||||||
if "headers" not in kwargs or "Authorization" not in kwargs["headers"]:
|
if "headers" not in kwargs or "Authorization" not in kwargs["headers"]:
|
||||||
return MockResponse(401, {})
|
return MockResponse(401, {})
|
||||||
authz = kwargs["headers"]["Authorization"]
|
authz = kwargs["headers"]["Authorization"]
|
||||||
if authz != "Bearer abcdefg":
|
if authz != "Bearer my-jwks-token":
|
||||||
return MockResponse(401, {})
|
return MockResponse(401, {})
|
||||||
return await mock_jwks_response(args, kwargs)
|
return await mock_jwks_response(args, kwargs)
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ def oauth2_app_with_jwks_token():
|
||||||
"jwks": {
|
"jwks": {
|
||||||
"uri": "http://mock-authz-service/token/introspect",
|
"uri": "http://mock-authz-service/token/introspect",
|
||||||
"key_recheck_period": "3600",
|
"key_recheck_period": "3600",
|
||||||
"token": "abcdefg",
|
"token": "my-jwks-token",
|
||||||
},
|
},
|
||||||
"audience": "llama-stack",
|
"audience": "llama-stack",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue