Token Exchange #12791
Replies: 4 comments
-
|
First you prepare PostAuthn script. Then set dn of that script into client. As alternative you can set it directly in DB ( |
Beta Was this translation helpful? Give feedback.
-
|
Chipping in here... I have the exact same concerns as @wacko-cornflower, did you read the questions? It's not possible to config the client with the grant type Shouldn't Yeah, the docs are very confusing as mentioned. They diverge very much. Which script type should the provider have? ? |
Beta Was this translation helpful? Give feedback.
-
|
I have spent the day trying to cross off stuff to test in the checklist. Regarding 1. I have also updated to janssen 1.14.0 but that has not made any changes in regard to the token exchange flows that i have been able to spot |
Beta Was this translation helpful? Give feedback.
-
|
Oh and regarding 2.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there. Im currently trying to test out the token exhange functionality but have run into a couple of problems that i would like to double check with anyone more knowledgeable.
First of all the setup:
We are running with the terraform provider version 1.9.0 and the janssen is running 1.11.0
Issue 1:
What we have seen so far is that we are not able to set the grant_type of a client to the token-exchange type(have tried token_exchange,token-exchange and urn:ietf:params:oauth:grant-type:token-exchange).
It errors out saying that it is not a valid option.
Issue 2:
But then also we have had some issues loading our interception script that we wanted to use for this. Some looking into the the janssen source led us to notice that the code for loading the script files in ExternalTokenExchangeService.java was using the attribute for postauthn:
final List<CustomScriptConfiguration> scripts = getCustomScriptConfigurationsByDns(client.getAttributes().getPostAuthnScripts());The source suggests that it will work but we are getting nullpointers exceptions when we return from our token-exchange interception script when it always returns a statically created object. (the example code with some additional debug lines).
Issue 3:
The documentation is also a bit ambiguous with these pages being slightlty different (for instance in Content-Type):
https://docs.jans.io/head/janssen-server/auth-server/oauth-features/token-exchange/
https://docs.jans.io/head/script-catalog/token_exchange/token-exchange/
So to summarise:
How are we supposed to be setting a client a token-exchange capable? Is it not with a grant at all?
Is there additional configuration needed to be able to successfully return from the interception script?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions