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

Add allowedScopes as query string in consent page #2297

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

sahandilshan
Copy link
Contributor

@sahandilshan sahandilshan commented Dec 8, 2023

Proposed changes in this pull request

  • $subject
  • This was introduced to skip the unregistered scopes from the consent page

Related Issue(s)

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7140448498
Status: failure

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7162310751
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/7162310751

if (queryString.contains(REQUEST_URI) && params != null) {
StringBuilder queryStringBuilder = new StringBuilder();
queryStringBuilder.append(entry.getQueryString());
if (entry.getQueryString().contains(REQUEST_URI) && params != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this null safe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is getting called here [1] and it's already checking whether the entry is null. And this is the only usage of that method.

[1] -

if (entry != null && entry.getQueryString() != null) {
queryString = getQueryString(params, entry);

@sahandilshan sahandilshan merged commit e1a1962 into wso2-extensions:master Dec 11, 2023
2 checks passed
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.

3 participants