mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
Merge https://github.com/google/adk-python/pull/2960 1. All in one authentication sample (has an IDP, Agent and the application) under `contributing/samples/authn-adk-all-in-one/` 2. Documented for all the steps. 3. OAuth 2.0 Authorization Code Grant type used by the agent. COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2960 from nikhilpurwant:main dfcc821602d265c4ae7cc42eb1f5739beaad6f87 PiperOrigin-RevId: 808672120
16 lines
593 B
Bash
16 lines
593 B
Bash
GENERATE_JWT=true
|
|
|
|
# Steps -
|
|
# 1. ssh-keygen -t rsa -b 2048 -m PEM -f private_key.pem
|
|
# 2. When asked about passphrase please press enter (empty passphrase)
|
|
# 3. openssl rsa -in private_key.pem -pubout > pubkey.pub
|
|
# 4. Generate the jwks.json content using https://jwkset.com/generate and this public key (choose key algorithm RS256 and Key use Signature)
|
|
# 5. Update the jwks.json with the jwks key created in 4
|
|
|
|
# Add key from step 1 here
|
|
# make sure you add it in single line. You can use the following command to get a single line key
|
|
# cat private_key.pem | tr -d "\n"
|
|
|
|
PRIVATE_KEY=""
|
|
|