Uploaded image for project: 'Single Sign On'
  1. Single Sign On
  2. MGNLSSO-131

Create integration test for Direct client flow (Token auth)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 3.0.0
    • None
    • None
    • None

    Description

      As a result of MGNLSSO-96, there is a missing integration test for the direct client flow.

      The scenario is:

      • Prerequisite: Setup SSO module with an addition direct client
      • Get the token from Keycloak token endpoint
      • Use the token in the Authentication header Bearer type to get content from Magnolia

      Please checkout the Postman requests collection to know more.

      Dev notes:

      • Tried to create the test in SsoModuleIT class (see example in attachment), but it failed to run in current setup that IT is run on the Host and connect Keycloak in Docker container (localhost:8080) and Magnolia instance (localhost:8081)
      • The token obtained from Keycloak token endpoint (localhost:8080), but it can't be verified through "keycloak:8080" in SSO module because the token is issued by different host then the verification process. So, it's possible if we can reach the Keycloak from the host using host name (keycloak in this case) to get the token.
      • So, we may need to create the test in different setup to achieve this.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                nguyen.phung Nguyen Phung Chi
                nguyen.phung Nguyen Phung Chi
                AdminX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 7d 2.5h
                      7d 2.5h