-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/issue1058 #1059
Open
chrisala
wants to merge
18
commits into
dev
Choose a base branch
from
feature/issue1058
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/issue1058 #1059
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0bcae50
Updates to support new ala-security-project version/ java17 #1058
chrisala ab3b192
Simplified UserService.setUser and updated tests #1058
chrisala 808d99e
Removed unused dependencies #1058
chrisala e0bde6f
Removed dependency on ala auth implementation #1058
chrisala 89c76b7
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala fdaece9
Updated user check to work with CAS #1058
chrisala 0b1bc52
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala c2b053e
Bump travis to java17 #1058
chrisala b1f022a
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala b39ae2a
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala 10de76b
Merge branch 'dev' into feature/issue1058
temi 8a418ad
Check for clonable before calling clone for java17 #1058
chrisala 58d1eed
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala 86ddfc4
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala 4e7ea0e
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala e4a5817
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala 4d67e67
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala dd25a6b
Merge remote-tracking branch 'origin/dev' into feature/issue1058
chrisala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: ecodata build | |
on: | ||
push: | ||
branches: | ||
- grails5java11 | ||
- dev | ||
- master | ||
- feature/** | ||
|
@@ -20,18 +19,18 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
|
||
- name: Install and start elasticsearch | ||
run: | | ||
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.3-amd64.deb -o elasticsearch.deb | ||
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.27-amd64.deb -o elasticsearch.deb | ||
sudo dpkg -i --force-confnew elasticsearch.deb | ||
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch | ||
sudo sh -c 'echo ES_JAVA_OPTS=\"-Xmx1g -Xms1g\" >> /etc/default/elasticsearch' | ||
|
@@ -40,7 +39,7 @@ jobs: | |
- name: Install and start mongodb | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '5.0' | ||
mongodb-version: '8.0' | ||
|
||
- name: Build and run jacoco coverage report with Gradle | ||
uses: gradle/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does isUserInRole check scope attribute or just role attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for M2M tokens it applies the role check to the scopes rather than the user profile roles. The alternatives I could find to identify M2M was to check the principal (which is set to the clientId) or a check of the profile class (which introduces a dependency on the plugin implementation).
I thought since we otherwise were using the scopes it made sense to go with that approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(The disadvantage of checking the client id is we need to manage a list of authorized clients)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me. I was just checking.