Skip to content

Commit eda9c1c

Browse files
return id_token=access_token for /v3/oauth2/tokens
1 parent 803d79c commit eda9c1c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

service/controllers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,7 @@ def post(self):
14901490
raise errors.ResourceError("Failure to generate an access token; please try again later.")
14911491
try:
14921492
result = {'access_token': {'access_token': tokens.access_token.access_token,
1493+
'id_token': tokens.access_token.access_token,
14931494
'expires_at': tokens.access_token.expires_at,
14941495
'expires_in': tokens.access_token.expires_in,
14951496
'jti': tokens.access_token.jti

service/resources/openapi_v3.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ components:
707707
access_token:
708708
type: string
709709
description: The actual access token as a JWT
710+
id_token:
711+
type: string
712+
description: The actual access token as a JWT
710713
expires_at:
711714
type: string
712715
description: The time, as a string in UTC, when the token expires.

0 commit comments

Comments
 (0)