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

Inconsistent behaviour in SAML NameID format value #21826

Open
DilshaniSH opened this issue Nov 27, 2024 · 1 comment
Open

Inconsistent behaviour in SAML NameID format value #21826

DilshaniSH opened this issue Nov 27, 2024 · 1 comment

Comments

@DilshaniSH
Copy link

Describe the issue:
NameID format value is displayed correctly in the management console containing ":" characters. However when we get the SAML inbound protocol information of a service provider, using application management API, ":" characters in the NameID format value is replaced with "/" characters.

How to reproduce:

  1. Create a SAML service provider through management console and configure NameID format value as "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress".
  2. Retrieve the SAML inbound information of the particular application using application management API.
      Request : 
      curl --location --request GET 'https://localhost:9443/t/carbon.super/api/server/v1/applications/5b90f38e-6bc3-4f83-a5cc-9c6b75ed99da/inbound-protocols/saml' \
      --header 'Authorization: Basic YWRtaW46YWRtaW4='
      
      Response:
      {
          ...................
              "assertion": {
                  "nameIdFormat": **"urn/oasis/names/tc/SAML/1.1/nameid-format/emailAddress"**,
                  "audiences": [],
                  
              }
          }
          .......................................
      }
  1. NameID format value is returned as "urn/oasis/names/tc/SAML/1.1/nameid-format/emailAddress".
  2. View the NameID format value through the management console and it's displayed as "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"

Expected behavior:
API response to include the nameID format value in the correct format.

Environment information :

  • Product Version: IS 5.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants