Skip to content

[Sync][master -> next][#3180]: Add highest priority to resident idp in id token issuer.#3181

Open
github-actions[bot] wants to merge 1 commit intonextfrom
sync-pr-3180-to-next
Open

[Sync][master -> next][#3180]: Add highest priority to resident idp in id token issuer.#3181
github-actions[bot] wants to merge 1 commit intonextfrom
sync-pr-3180-to-next

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 8, 2026

🤖 Auto-sync from master

This PR automatically syncs the changes from #3180 to the next branch.

Original PR: #3180
Author: @ImalshaD
Total commits: 1
Workflow run: https://github.com/wso2-extensions/identity-inbound-auth-oauth/actions/runs/24116553219

Commits:

ab5da8d15b Add highest priority to resident idp in id token issuer.

Comment on lines +5007 to +5013
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {

String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
return residentIdp;
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log Improvement Suggestion No: 1

Suggested change
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {
String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
return residentIdp;
}
}
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {
log.debug("useEntityIDAsIssuerEnabled is true. Attempting to use resident IdP entity ID as issuer.");
String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
if (log.isDebugEnabled()) {
log.debug("Using resident IdP entity ID as issuer for tenant: " + tenantDomain);
}
return residentIdp;
}
log.warn("Resident IdP entity ID is blank for tenant: " + tenantDomain + ". Falling back to default issuer.");
}

Comment on lines +5046 to +5052
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {

String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
return residentIdp;
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log Improvement Suggestion No: 2

Suggested change
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {
String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
return residentIdp;
}
}
if (OAuthServerConfiguration.getInstance().getIsUseEntityIDAsIssuerEnabled()) {
log.debug("useEntityIDAsIssuerEnabled is true. Attempting to use resident IdP entity ID as issuer.");
String residentIdp = getResidentIdpEntityId(tenantDomain);
if (StringUtils.isNotBlank(residentIdp)) {
if (log.isDebugEnabled()) {
log.debug("Using resident IdP entity ID as issuer for tenant: " + tenantDomain + ", clientId: " + clientId);
}
return residentIdp;
}
log.warn("Resident IdP entity ID is blank for tenant: " + tenantDomain + ". Falling back to default issuer.");
}

Copy link
Copy Markdown
Contributor

@wso2-engineering wso2-engineering bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 1
#### Log Improvement Suggestion No: 2

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

Successfully merging this pull request may close these issues.

1 participant