Repository navigation
Conversation
|
Hello @JanssenBrm, Sorry for the late reply. I will implement as you suggest (add a new property Note, however, that the property |
|
Hi @JanssenBrm, I pushed the change. I named the configuration property |
Resolve broker-token and trusted-token-delegation auth changes; validate method-specific backend configuration and update OGC tests to use a valid JWT.
| # Return token if it is a Terradue/Geohazards-TEP token | ||
| # (issued by iam.terradue.com) | ||
| if parsed_uri.netloc == "iam.terradue.com": | ||
| logger.debug("Skipping token exchange for iam.terradue.com issuer") | ||
| return user_token |
There was a problem hiding this comment.
@floeschau - This. seems to be very specific for the terradue case and not OGC generic. Just for my understanding: in which case is the expecting issuer iam.terradue.com? Probably missing something, but I would assume that the user_token is always coming from APEx?
|
Thank you very much for the changes @floeschau. I only had one small question, for the rest the code looks fine for me to deploy to dev and test out. |
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.