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

PAR request fails when the PAR URL domain is different from the IDP/token URL #204

Closed
Akila94 opened this issue Nov 22, 2024 · 1 comment

Comments

@Akila94
Copy link
Member

Akila94 commented Nov 22, 2024

Description:
When a different URL is used as the PAR request URL (a different domain) but the identity server resident IDP URL is different from that, the PAR request throws an error telling the audience values does not match.

Currently the aud value sent in the request object is validated with the following URLs in the accelerator code base,

  • Token endpoint
  • Resident IDP URL
  • PAR endpoint (this is built by adding the necessary par endpoint URL parts to the Resident IDP URL)

Hence, when the real PAR request contains a different domain than the above URLs, the PAR request fails.

To avoid this scenario, a configuration should be introduced to configure the PAR request URL. If a URL is defined, when the PAR request is performed, the audience value of the request object will be validated with the configured URL.

Suggested Labels:
Accelerator, OB3

Suggested Assignees:

Affected Product Version:
OB3 IAM accelerator

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:
https://github.com/wso2-enterprise/wso2-ob-internal/issues/904

@Akila94
Copy link
Member Author

Akila94 commented Nov 28, 2024

Closing this since this fix is not required. Refer the issue: #208

@Akila94 Akila94 closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant