Merge branch 'fix/workflow-roles-autowire-ctor' into 'main'

fix(auth): @Autowired на WorkflowRoles main ctor (super-role override fix)

See merge request 2-6/2-6-4/terravault/ordinis!165
This commit is contained in:
Александр Зимин
2026-05-13 10:51:38 +00:00
@@ -77,6 +77,13 @@ public class WorkflowRoles {
private final OrdinisAuthProperties props;
/**
* Spring autowire constructor. Без @Autowired Spring randomly выбирает
* один из multiple ctors — был bug что выбирался no-arg test ctor
* → props=null → fallback на default realm_access.roles (несмотря на
* env var ORDINIS_AUTH_ROLES_CLAIM=resource_access.ordinis.roles).
*/
@org.springframework.beans.factory.annotation.Autowired
public WorkflowRoles(OrdinisAuthProperties props) {
this.props = props;
}