From b738f8256e17bb7ab01a082df99ffe28adfdeb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Villaf=C3=A1=C3=B1ez?= Date: Mon, 18 Aug 2025 10:03:23 +0200 Subject: [PATCH] docs: add missing doc information --- services/proxy/README.md | 16 ++++++++++++++++ services/proxy/pkg/config/config.go | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/services/proxy/README.md b/services/proxy/README.md index 4be695a7942..f3d6cce4520 100644 --- a/services/proxy/README.md +++ b/services/proxy/README.md @@ -146,6 +146,22 @@ These issued JWT tokens are immutable and integrity-protected. Which means, any * Infinite Scale does not get aware when a group is being deleted in the IDP, a new claim will not hold any information from the deleted group. Infinite Scale does not track a claim history to compare. +#### Claim checks and step up authentication + +On fixed routes, Infinite Scale can provide different checks over the OIDC claims that could block requests to those routes if the check fails. These checks are intended to provide a step up authentication mechanism on those paths, which would require a higher authentication level. + +This feature is disabled by default, and is intended to work with Keycloak as IDP (it heavily relies on IDP features and requires client support, so it might not work with all the providers). + +For the step up authentication, you will need to setup a check on the claims (as env variables): +``` +PROXY_OIDC_CLAIMSCHECKER_NAME: Acr +PROXY_OIDC_CLAIMSCHECKER_PARAMS: value=advanced +``` +where the "advanced" value will depend on the specific acr and authentication level configured in the IDP (Keycloak in this case) + +For the (fixed) affected routes, if the check fails, a 401 error code will be returned with a couple of extra custom headers: `X-OCIS-OIDC-Requires-Type: Acr` and `X-OCIS-OIDC-Requires-Data: acr=advanced`. Clients can request another token with the proper authentication level and repeat the request in this particular scenario. +Note that it isn't the only check that can be setup, and some checks might not be solvable from the client side. + #### Impacts For shares or space memberships based on groups, a renamed or deleted group will impact accessing the resource: diff --git a/services/proxy/pkg/config/config.go b/services/proxy/pkg/config/config.go index a01dd8eb03f..5ce24042500 100644 --- a/services/proxy/pkg/config/config.go +++ b/services/proxy/pkg/config/config.go @@ -128,7 +128,7 @@ type JWKS struct { } type ClaimsChecker struct { - Name string `yaml:"name" env:"PROXY_OIDC_CLAIMSCHECKER_NAME" desc:"Name of the claims checker to be used. It can be 'Bool'" introductionVersion:"releaseX"` + Name string `yaml:"name" env:"PROXY_OIDC_CLAIMSCHECKER_NAME" desc:"Name of the claims checker to be used. It can be 'Bool', 'Regexp' or 'Acr'" introductionVersion:"releaseX"` Params string `yaml:"params" env:"PROXY_OIDC_CLAIMSCHECKER_PARAMS" desc:"Parameters to be used by the chosen claims checker. Formatting depends on the specific checker, but it usually like 'param1=value1;param2=value2'" introductionVersion:"releaseX"` }