adk_request_credential: Bearer Token Example #2113
Unanswered
patrick-hertling
asked this question in
Q&A
Replies: 3 comments
-
|
I m having the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm having the same problem, has anyone found a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Not sure if my solution would be useful, given that I am using OAuth flow and my adk runtime/invoker is in python, but I was able to get it to work by also setting a temp state variable as the authenticated tool expects. The following script triggers Reference |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bearer Token Example:
I couldn't find how to do this anywhere.
Usecase:
Agent with OpenApiToolset
API uses JWT in HTTP header like
Authentication: Bearer eJasdfasdfadsf...Token expires every hour
When Agent answers with
adk_request_credentialevent, what am I supposed to give him exactly?This is what I have tried:
POST /run{ "appName": "api_agent", "userId": "u_123", "sessionId": "s_125", "newMessage": { "role": "user", "parts": [ { "function_response": { "id": "adk-22bf4fc3-b66c-401d-8d63-a12282672f12", "name": "adk_request_credential", "response": { "authScheme": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" }, "credentialKey": "adk_http_3406774919278891756_", "authCredentials": { "type": "http", "http": { "scheme": "bearer", "credentials": { "token": "token goes here" } } } } } } ] } }We can never get the agent to continue the flow.
He always response that he does not have the credentials.
Can you help us?
Beta Was this translation helpful? Give feedback.
All reactions