Skip to content

Commit 258864b

Browse files
committed
feat(jans-linux-setup): added token exchange grant type
Native SSO #2518 #2767
1 parent 7c7af09 commit 258864b

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

docs/admin/config-guide/jans-cli/cli-jans-authorization-server.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ Getting access token for scope https://jans.io/oauth/jans-auth-server/config/pro
9898
"urn:ietf:params:oauth:grant-type:device_code",
9999
"client_credentials",
100100
"urn:ietf:params:oauth:grant-type:uma-ticket",
101-
"implicit"
101+
"implicit",
102+
"urn:ietf:params:oauth:grant-type:token-exchange"
102103
],
103104
"subjectTypesSupported": [
104105
"public",
@@ -368,6 +369,7 @@ Getting access token for scope https://jans.io/oauth/jans-auth-server/config/pro
368369
"urn:ietf:params:oauth:grant-type:device_code",
369370
"client_credentials",
370371
"urn:ietf:params:oauth:grant-type:uma-ticket",
372+
"urn:ietf:params:oauth:grant-type:token-exchange",
371373
"implicit"
372374
],
373375
"cssLocation": null,

docs/admin/config-guide/jans-cli/im/im-jans-authorization-server.md

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Select 1 to get all the details about Jans authorization server configuration. I
7171
"refresh_token",
7272
"urn:ietf:params:oauth:grant-type:uma-ticket",
7373
"urn:ietf:params:oauth:grant-type:device_code",
74+
"urn:ietf:params:oauth:grant-type:token-exchange",
7475
"implicit",
7576
"authorization_code"
7677
],
@@ -341,6 +342,7 @@ Select 1 to get all the details about Jans authorization server configuration. I
341342
"refresh_token",
342343
"urn:ietf:params:oauth:grant-type:uma-ticket",
343344
"urn:ietf:params:oauth:grant-type:device_code",
345+
"urn:ietf:params:oauth:grant-type:token-exchange",
344346
"implicit",
345347
"authorization_code"
346348
],

jans-auth-server/server/conf/jans-config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"refresh_token",
5959
"urn:ietf:params:oauth:grant-type:uma-ticket",
6060
"urn:openid:params:grant-type:ciba",
61-
"urn:ietf:params:oauth:grant-type:device_code"
61+
"urn:ietf:params:oauth:grant-type:device_code",
62+
"urn:ietf:params:oauth:grant-type:token-exchange"
6263
],
6364
"subjectTypesSupported":[
6465
"public",

jans-linux-setup/jans_setup/openbanking/templates/jans-auth/jans-auth-config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"client_credentials",
7575
"authorization_code",
7676
"refresh_token",
77-
"urn:ietf:params:oauth:grant-type:device_code"
77+
"urn:ietf:params:oauth:grant-type:device_code",
78+
"urn:ietf:params:oauth:grant-type:token-exchange"
7879
],
7980
"allowIdTokenWithoutImplicitGrantType": true,
8081
"subjectTypesSupported":[

jans-linux-setup/jans_setup/setup_app/test_data_loader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def load_test_data(self):
235235
'dynamicRegistrationCustomAttributes': [ "jansTrustedClnt", "myCustomAttr1", "myCustomAttr2", "jansInclClaimsInIdTkn" ],
236236
'dynamicRegistrationExpirationTime': 86400,
237237
'grantTypesAndResponseTypesAutofixEnabled': True,
238-
'dynamicGrantTypeDefault': [ "authorization_code", "implicit", "password", "client_credentials", "refresh_token", "urn:ietf:params:oauth:grant-type:uma-ticket", "urn:openid:params:grant-type:ciba", "urn:ietf:params:oauth:grant-type:device_code" ],
238+
'dynamicGrantTypeDefault': [ "authorization_code", "implicit", "password", "client_credentials", "refresh_token", "urn:ietf:params:oauth:grant-type:uma-ticket", "urn:openid:params:grant-type:ciba", "urn:ietf:params:oauth:grant-type:device_code", "urn:ietf:params:oauth:grant-type:token-exchange" ],
239239
'legacyIdTokenClaims': True,
240240
'authenticationFiltersEnabled': True,
241241
'clientAuthenticationFiltersEnabled': True,
@@ -252,7 +252,7 @@ def load_test_data(self):
252252
'userInfoSigningAlgValuesSupported': [ 'none', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512' ],
253253
'consentGatheringScriptBackwardCompatibility': False,
254254
'claimsParameterSupported': True,
255-
'grantTypesSupported': [ 'urn:openid:params:grant-type:ciba', 'authorization_code', 'urn:ietf:params:oauth:grant-type:uma-ticket', 'urn:ietf:params:oauth:grant-type:device_code', 'client_credentials', 'implicit', 'refresh_token', 'password' ],
255+
'grantTypesSupported': [ 'urn:openid:params:grant-type:ciba', 'authorization_code', 'urn:ietf:params:oauth:grant-type:uma-ticket', 'urn:ietf:params:oauth:grant-type:device_code', 'client_credentials', 'implicit', 'refresh_token', 'password', 'urn:ietf:params:oauth:grant-type:token-exchange' ],
256256
'idTokenSigningAlgValuesSupported': [ 'none', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512' ],
257257
'accessTokenSigningAlgValuesSupported': [ 'none', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512' ],
258258
'requestObjectSigningAlgValuesSupported': [ 'none', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512' ],

jans-linux-setup/jans_setup/templates/jans-auth/jans-auth-config.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"client_credentials",
6363
"refresh_token",
6464
"urn:ietf:params:oauth:grant-type:uma-ticket",
65-
"urn:ietf:params:oauth:grant-type:device_code"
65+
"urn:ietf:params:oauth:grant-type:device_code",
66+
"urn:ietf:params:oauth:grant-type:token-exchange"
6667
],
6768
"subjectTypesSupported":[
6869
"public",
@@ -278,7 +279,8 @@
278279
"client_credentials",
279280
"refresh_token",
280281
"urn:ietf:params:oauth:grant-type:uma-ticket",
281-
"urn:ietf:params:oauth:grant-type:device_code"
282+
"urn:ietf:params:oauth:grant-type:device_code",
283+
"urn:ietf:params:oauth:grant-type:token-exchange"
282284
],
283285
"claimsParameterSupported":false,
284286
"requestParameterSupported":true,

jans-linux-setup/jans_setup/templates/test/docs/oxauth-config-update.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ III. These changes should be applied to oxAuth config.
2525
"password",
2626
"client_credentials",
2727
"refresh_token",
28-
"urn:ietf:params:oauth:grant-type:uma-ticket"
28+
"urn:ietf:params:oauth:grant-type:uma-ticket",
29+
"urn:ietf:params:oauth:grant-type:token-exchange"
2930
],
3031

3132
5. "legacyIdTokenClaims":true

0 commit comments

Comments
 (0)