File tree Expand file tree Collapse file tree
packages/oauth/src/keycardai/oauth/operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from ..exceptions import OAuthHttpError , OAuthProtocolError
1111from ..http ._context import HTTPContext
1212from ..http ._wire import HttpRequest , HttpResponse
13- from ..http .auth import NoneAuth
1413from ..types .models import TokenExchangeRequest , TokenResponse
15- from ..utils .jwt import get_claims
1614
1715
1816def build_token_exchange_http_request (
@@ -28,12 +26,6 @@ def build_token_exchange_http_request(
2826 Returns:
2927 HttpRequest for the token exchange endpoint
3028 """
31- # Impersonate the client if not explicitly set to delegations
32- if request .actor_token is None and request .client_id is None and isinstance (context .auth , NoneAuth ):
33- claims = get_claims (request .subject_token )
34- request .client_id = claims .get ("client_id" )
35-
36-
3729 payload = request .model_dump (
3830 mode = "json" ,
3931 exclude_none = True ,
You can’t perform that action at this time.
0 commit comments