-
I would like to use kubernetes service account tokens ( My questions is, did anyone try using k8s oidc discovery to exchange service account tokens for access_token and/or faced any challenges? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @sjvaiz I havent tried this myself and the documentation does not contain specific information about using Kubernetes service account tokens to exchange for access tokens with Ory. However, Ory does support the use of JWTs for OAuth 2.0 Grants, which allows a client to send a signed JWT token to an OpenID Connect Provider in exchange for an OAuth 2.0 access token read more here.
|
Beta Was this translation helpful? Give feedback.
Hey @sjvaiz
I havent tried this myself and the documentation does not contain specific information about using Kubernetes service account tokens to exchange for access tokens with Ory.
However, Ory does support the use of JWTs for OAuth 2.0 Grants, which allows a client to send a signed JWT token to an OpenID Connect Provider in exchange for an OAuth 2.0 access token read more here.
You can establish a trust relationship using the trustOAuth2JwtGrantIssuer function as shown here: