Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: authRelated to authorization or authenticationtype: featureNew feature or requestworkload: daysLikely takes days to resolve
Description
Why?
In ELIXIR On-Cloud, services call each other with their own tokens (OAuth 2.0 client credentials), e.g. Conquest → proTES and proTES → TES, because user tokens expire during long runs. Such tokens represent a client, not a user: they have no user info and no group entitlements. FOCA currently fetches user info when configured claims (e.g. the group claim) are missing; for a service token that fails or yields nothing, and access control can't give the client a role except through its sub as a user.
How?
- Recognise service tokens (e.g.
subequalsclient_id, or a configured list of service clients) and skip the user info request for them. - Let access control map clients to roles (e.g. a
client_mappingnext togroup_mapping, givingclient:<id>subjects), so an app can say "Conquest's client may create tasks". - Optionally let allow-listed service clients name the user they act for (e.g. a request header or field configured by the app), so that apps can attribute ownership to that user. Example: proTES makes the user that Conquest names the owner of the task. Other callers can't do this; their value is ignored or rejected. Token exchange with an
actclaim can replace this later. - Document how to combine this with the client allowlist (feat(auth): allow-list token clients #339).
First check what LS Login's client-credentials tokens contain (sub, client_id, aud, lifetime) and whether its user info endpoint answers for them.
Acceptance criteria
- A valid client-credentials token is accepted without a user info request, and its client gets the mapped role; tests cover it.
- User tokens behave as before.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: authRelated to authorization or authenticationtype: featureNew feature or requestworkload: daysLikely takes days to resolve
Activity
fix(config): reject subject-like mapped roles
uniqueg commentedon Oct 22, 2026
Done in #371.