Alternative token exchange - #70
Open
floeschau wants to merge 7 commits into
Open
Conversation
JanssenBrm
reviewed
Aug 25, 2026
| "requested_issuer": provider, | ||
| } | ||
|
|
||
| if backend_idp.token_url: |
Contributor
There was a problem hiding this comment.
I believe the token_url property should not be considered the selection property to decide whether to use TTD or not as the token_url would be required for any kind of external OIDC communication. Maybe it is better to define a new property (e.g. auth_type) which can be set to trusted_token_delegation or identity_brokering. This not only ensures that code can be split more logically but also allows the validation to ensure the right properties are defined depending on the selected auth_type. What do you think?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this change, an alternative way of token exchange (Cross-Domain Federation), alongside the existing Internal-to-External exchange is enabled. This can be extended into Trusted Token Delegation (by adding additional claims to the access token).
This is needed to have the Dispatcher run in different environments (e.g. for testing and reference) and with a different IDP configurations where the IDP authorising the use of the execution platform is not configured within the central IDP (e.g. APEx).
It requires additional settings in the
BACKENDSconfiguration (all of which are optional so as to guarantee backward compatibility), e.g. in the case of the Geohazards Exploitation Platform (GEP):{ ... "https://processing.geohazards-tep.eu": { "auth_method": "USER_CREDENTIALS", "token_provider": "gep", "token_url": "https://iam.terradue.com/realms/master/protocol/openid-connect/token", "client_id": "apex-test-token", "client_secret": "...", "subject_issuer": "iam-dev-apex", "audience": "processing-gep-apex" } }The presence of
token_urlin the backend configuration triggers the alternative token exchange. Otherwise the existing routine is used.