{"portalVersion":"v7.2.7-SNAPSHOT","dbVersion":"3.1.0","genesetVersion":"msigdb_v2025.1.Hs","geneTableVersion":"hgnc_v7_2025.10.7","gitBranch":"master","gitCommitId":"9ecc300ff63230ed5e785a3fb6e6215e19ac5b4e","gitCommitIdDescribe":"9ecc300-dirty","gitCommitIdDescribeShort":"9ecc300-dirty","gitCommitMessageFull":"Auth security tests (#12518)\n\n* Test access rules of the study permission evaluator\n\nCover how CancerStudyPermissionEvaluator grants access: study groups,\nthe study identifier as an authority, ALL, ALL_TCGA, ALL_NCI_TARGET,\nthe ROLE_ prefix, always_show_study_group, filter_groups_by_appname\nand its default, the LIST permission, and resolving molecular\nprofiles, sample lists, patients and ID collections to their study.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Test role extraction for OIDC logins and tokens\n\nCover the OIDC login authorities mapper (roles from the ID token, user\ninfo and OAuth2 attributes, logins without a roles claim), the Keycloak\noffline-token provider (roles and subject from the access token,\nmissing subject, refresh failure), and ClaimRoleExtractorUtil with\nnested paths, missing paths and malformed claims.\n\nOAuth2SecurityConfig.userAuthoritiesMapper() becomes package-private so\nthe test can call it.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Test security filter chains with SAML login\n\nAdd SecurityChainTestSupport, which runs the security configuration\nand method security against the real StudyController and\nColumnStoreStudyController, with services, permission cache and\nidentity providers mocked. Each test class sets one combination of\nproperties:\n- saml_plus_basic with Keycloak offline tokens: login requirements,\n  study access by SAML roles, single logout, basic login and logout,\n  offline tokens, CORS preflight.\n- saml with Keycloak offline tokens: no basic login, offline tokens\n  and refresh failure.\n- saml without data access tokens: bearer tokens not accepted.\n- saml with authorization=true: SAML roles still decide access, and\n  /api/studies/{studyId} answers 200, 403 or 401 for a proxy\n  subrequest.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Test security filter chains with OIDC login\n\n- oauth2 with authorization=true and UUID tokens: login requirements,\n  app-name prefixed groups, logout with and without an\n  end_session_endpoint, valid, expired and unknown tokens, CORS\n  preflight.\n- oauth2 with method security off: API calls without login are 401\n  even for public studies, pages redirect to /login, users without\n  role claims read only the always-shown group, bearer tokens are not\n  accepted.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Test security filter chains with optional login\n\n- optional_oauth2 with method security off: anonymous access to all\n  studies and pages, login redirect to the chosen provider, logout to\n  the home page, bearer tokens ignored, CORS preflight, and the API\n  chain and method security stay off.\n- optional_oauth2 with security.method_authorization_enabled=true:\n  anonymous users read only the always-shown group and are sent to the\n  login page otherwise; signed-in users also read their own groups.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Test security with authentication turned off\n\nWith authenticate=false only NoSecurityConfig loads: no API chain, no\npermission evaluator, and every study and page is readable without\nlogin.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n* Check that saml mode does not load basic login\n\nbasicLoginIsNotAvailable posted unknown credentials, so it also passed\nwith basic login enabled. Load Saml2AndBasicConfig into the context,\nassert that authenticate=saml leaves it out, and post the credentials\nof a configured basic user.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n\n---------\n\nCo-authored-by: Claude Opus 5.5 <noreply@anthropic.com>","gitCommitMessageShort":"Auth security tests (#12518)","gitCommitMessageUserEmail":"15748980+dippindots@users.noreply.github.com","gitCommitMessageUserName":"Gaofei Zhao","gitDirty":true}