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

Refactor user permission implementation related to pre issue access token action tests #21070

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Shenali-SJ
Copy link
Contributor

Description

This refactors the implementation of user permission handling in both the preIssueAccessTokenPasswordGrantTestCase and preIssueAccessTokenClientCredentialsGrantTestCase.

Related Issues

Related PRs

@jenkins-is-staging
Copy link
Contributor

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10738133996

@jenkins-is-staging
Copy link
Contributor

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

Copy link
Contributor

@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/10738133996

.map(String::toLowerCase)
.collect(Collectors.joining(" "));
parameters.add(new BasicNameValuePair("scope", scopes));
parameters.add(new BasicNameValuePair("scope", String.join(" ", permissions)));
Copy link
Member

Choose a reason for hiding this comment

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

Looks like permissions is an empty list. Isn't that the case ?

@malithie
Copy link
Member

@Shenali-SJ this PR seems to be conflicted now.
Moreover, looks like this PR now adds respective permissions to the user (both system permissions and domain api related permissions), but are those requested in the token request ? Looks not

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