Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returns ExtendedGeorchestraUser object when createUserInLdap set to true #114

Merged

Commits on May 7, 2024

  1. Returns ExtendedGeorchestra* objects when createUserInLdap set to true

    Considering the following configuration scenario:
    
    * external authentication (oidc/oauth2 or pre-auth) being configured
    * `createUsersInGeorchestraLdap` set to true
    
    Then the resolved GeorchestraUser should be an
    `ExtendedGeorchestraUser`, in order to have a behaviour coherent with
    the extended geOrchestra LDAP authentication.
    
    Without doing so, users externally authenticated will resolve as a
    classic GeorchestraUser, leading to missing http headers and breaking
    some geOrchestra applications (e.g. datafeeder, which requires the
    `sec-orgname` provided only when resolving to an
    `ExtendedGeorchestraUser`).
    
    This also refactors the LdapConfigProperties to
    GeorchestraGatewaySecurityConfigProperties, as the object is not only
    about LDAP, but also nests some other configureable features (OIDC,
    ...).
    
    Documentation has been updated to describe / explain the behaviour.
    
    Tests:
    * testsuite adapted
    * added specific tests case scenario
    pmauduit committed May 7, 2024
    Configuration menu
    Copy the full SHA
    204f91a View commit details
    Browse the repository at this point in the history