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

Rework password expiration template messages customization (#30) #31

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Sep 21, 2024

  1. Revert "Update Georchestra Cas to show customized error messages when…

    … password rotation policy is enabled"
    
    This reverts commit 480baea.
    pmauduit committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    dac6426 View commit details
    Browse the repository at this point in the history
  2. revisit password expiration policy templates customizations (#30)

    Reading the Java class mentioned in issue #30, it seems that
    only 2 properties were modified in the original messages.properties from
    the classpath (what about the other languages ?).
    
    This commit should provide the same behaviour as the original PR. I had
    to reintroduce the pwdupdateform.html fragment from upstream, and
    customize the (hardcoded ?) URLs to get into the console webservices
    meant for password management. FTR, the original template is here:
    https://github.com/apereo/cas/blob/6.6.x/support/cas-server-support-thymeleaf/src/main/resources/templates/fragments/pwdupdateform.html
    
    BTW, it looks like CAS provides such password management from the user
    on its own code, via an optional module:
    https://apereo.github.io/cas/7.0.x/password_management/Password-Management-Reset.html
    but since we already have the feature provided by the console, it makes
    probably more sense to make use of them instead.
    
    Note: I am not sure why the `password.expiration.warning` does not
    seem to be used in any templates in the CAS6.6 codebase.
    
    Note2: we might want to be able to customize the console's endpoint url
    from the datadir, but since they were hardcoded in the java class, at
    least we are isofunctional here.
    
    tests: runtime, using
    https://github.com/georchestra/sample-docker-composition/tree/main/cas/password-expiration
    - tested with english & french locales.
    pmauduit committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    4b18b6c View commit details
    Browse the repository at this point in the history
  3. switch to upload-artifact GHA v4

    unrelated but makes the CICD fail.
    pmauduit committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    eba5f13 View commit details
    Browse the repository at this point in the history