Uploaded image for project: 'REST Client'
  1. REST Client
  2. MGNLRESTCL-221

securitySchemes REST client does not get latest Password value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 2.0.4
    • None
    • None

    Description

      Steps to reproduce

      1. Install Magnolia (mgnl jumpstart and unzip the light-module provided, myLm.zip), I will refer this project as Magnolia from now on. Then start magnolia (mgnl start), from Passwords app create a new password (whatever value). Keep the <uuid> for step 4.
      2. Start up Spring Boot project attached, unzip from prueba.zip.
      3. From Magnolia, go to light-modules->myLm->restClient->prueba.yaml and update lines 9, 10 and 21 (lines that have the password uuid) with the password <uuid> you got from step 1.
      4. From Magnolia, create a new page from pages-app using the template "my-homepage" (that template performs a call to the Spring boot project).
      5. Once you render the page go to the console of the Spring Boot project (step 2), you will see from the console the passwords being sent for the api_key and Authorization header (this header is created when using basic securitySchemes).
      6. From Magnolia, go again to the passwords app and update the password you created at step 1 with a new value (different value from step 1).
      7. From Magnolia refresh the page you created at step 4 again.
      8. Go to Spring boot project console. You will see printed the new updated password for the header api_key, however the Authorization header keeps having the old value.

      .. Logs, screenshots, gifs...

      Expected results

       At step 8, since the api_key header has its value updated, Authorization header should also print the new value.

      Actual results

      Authorization header print the old value.

      Workaround

      Development notes

      Security scheme gets the latest password, unfortunately, it is not reloaded after a password change. There is a new functionality in the password manager for m6.2 that allows registering on change listener. For m6.3 there is already on change listener integrated in data source and can be used. 

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                smarino Sergio Marino
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Work Started:

                  Checklists

                    Bug DoR
                    Task DoD