-
Notifications
You must be signed in to change notification settings - Fork 0
BA Meyer final commit #19
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
Merged
Merged
Changes from 26 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
4ff053e
Deleted default values
5257be9
CHANGED & ADDED files
9b7f80e
CHANGED Models
9a0f49f
Update index.md
lqwert 46f5f57
Changed CandidateService
9bdd8d3
Merge branch 'ba-meyer-master' of https://github.com/PatternPedia/pat…
c90ea8a
Merge branch 'master' into ba-meyer-merge
35dfccf
CHANGED interface, DELETED unused code
4bade8c
CHANGED index
679fe49
CHANGED userServiceImp
351ee84
ADDED features
02f84bf
MERGED master
abf98f8
CHAGE code clean up
24c6518
CHAGE code clean up
64eda53
CHANGED to new db settings
f2ff1d4
CHANGED to master
24cffed
CHANGED to authentication off
0f95fba
Updated .gitignore
TYueksel 0440f46
rename folders to comply to github scheme
TYueksel 609ea7b
MERGE from master to ba-meyer-master
TYueksel acc68c6
rename packages
TYueksel 158adb4
renamed packages
TYueksel 4c2bf08
Deleted duplicate import
TYueksel 9e5bc3e
Added rating att to match data model with db shema
TYueksel 3752aa2
change postgres role to patternatlas
TYueksel d388e90
Added candidates to languages tab
TYueksel e648926
Fixed typo
TYueksel caf6c34
Fixed typo
TYueksel ab97109
Fixed typo
TYueksel df6c97a
Resource privs for candidates & issues
TYueksel 8804b5e
Updated DB port
TYueksel f44446d
Added Priv Management UI and Admin UI bug fix
TYueksel bb22afa
Merge branch 'master' into ba-meyer-master
mhinkie 51ba047
changed spring-boot path
mhinkie e403930
fixed user creation from UI (added possibility for singular roles)
mhinkie 4c12e74
changed role handling to mimic old behavior with single roles
mhinkie c022c6c
Merge branch 'master' into ba-meyer-master
mhinkie ba37f57
disabled swagger
mhinkie 2c3d1b2
fixed serialisation error in exception handlers
mhinkie fcc63b6
added preauthorize checks for issues
mhinkie 8601aa4
removed debug output
mhinkie aeb8e60
author roles are now updated when issue authors are changed
mhinkie ee5ef1a
added privilege checks for pattern candidate
mhinkie a2143ef
added framework for privilege checks without JWT supplied authorities
mhinkie 29b8a6f
changed access control handling for issue
mhinkie 2271b55
updated permission checks for candidate
mhinkie ae97f15
added filter functionality for collectionmodel
mhinkie 923919f
added privilege checks for usercontroller
mhinkie 181baad
finished usercontroller permission
mhinkie 9d69d52
moved privilege checks
mhinkie 77a5ea6
removed swagger ui
mhinkie 8e2541e
changed resource server config for removed swagger
mhinkie c4b2483
added role management for authors in candidateservice
mhinkie e7db347
fixed author deleting for issue
mhinkie 430107c
removed in-code checks for privileges
mhinkie 7a297a8
fixed candidate service privilege check
mhinkie 8ff69f4
added function for changing platform wide roles for users
mhinkie 7f25d80
add endpoint to get all default privileges
PhilWun 294aafe
improve endpoint naming
PhilWun 075e9b3
add endpoint to update all resource specific roles
PhilWun 224bfa9
change http method to match the REST guidelines
PhilWun 829182b
add missing permission checks
PhilWun 9b01014
add guest role to specify what a user can do who is not logged in
PhilWun 1acd581
disable design model endpoints, because they are currently not used a…
PhilWun bfda094
disable discussions endpoints, because they are currently not used an…
PhilWun 9474446
disable image endpoints, because they are currently not used and don'…
PhilWun 6969599
fix error when deleting pattern from pattern language
PhilWun 55a5b4d
added initial user creation for users created in keycloak
mhinkie 0d295d3
add missing permission checks, fix some existing permission checks, f…
PhilWun 75cc597
added logic for creating admin user on first login
mhinkie 86e81ee
changed realm
mhinkie 8cbbef8
Merge branch 'ba-meyer-master' of https://github.com/PatternAtlas/pat…
mhinkie 0d7beea
removed old auth logic
mhinkie 6d2899c
adapted dockerfile and properties template for authentication chagnes
mhinkie 2b870b5
replaced imports with single class imports
mhinkie 74909cb
small refactoring and code style changes
mhinkie 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| version: '3' | ||
| services: | ||
| db: | ||
| image: postgres:10 | ||
| environment: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: postgres | ||
| POSTGRES_DB: postgres | ||
| ports: | ||
| - "5432:5432" | ||
| networks: | ||
| - default | ||
| networks: | ||
| default: | ||
| driver: bridge |
This file contains hidden or 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 hidden or 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 hidden or 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
43 changes: 43 additions & 0 deletions
43
src/main/java/io/github/patternatlas/api/config/Authority.java
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| package io.github.patternatlas.api.config; | ||
|
|
||
| public interface Authority { | ||
| /** ISSUE */ | ||
| String ISSUE_READ = "hasAuthority('ISSUE_READ')"; | ||
| String ISSUE_CREATE = "hasAuthority(ISSUE_CREATE')"; | ||
| String ISSUE_EDIT = "hasAuthority('ISSUE_EDIT')"; | ||
| String ISSUE_DELETE = "hasAuthority('ISSUE_DELETE')"; | ||
| String ISSUE_READ_ALL = "hasAuthority('ISSUE_READ_ALL')"; | ||
| String ISSUE_EDIT_ALL = "hasAuthority('ISSUE_EDIT_ALL')"; | ||
| String ISSUE_DELETE_ALL = "hasAuthority('ISSUE_DELETE_ALL')"; | ||
| String ISSUE_TO_PATTERN_CANDIDATE = "hasAuthority('ISSUE_TO_PATTERN_CANDIDATE')"; | ||
| /** CANDIDATE */ | ||
| String PATTERN_CANDIDATE_READ = "hasAuthority('PATTERN_CANDIDATE_READ')"; | ||
| String PATTERN_CANDIDATE_CREATE = "hasAuthority('PATTERN_CANDIDATE_CREATE')"; | ||
| String PATTERN_CANDIDATE_EDIT = "hasAuthority('PATTERN_CANDIDATE_EDIT')"; | ||
| String PATTERN_CANDIDATE_DELETE = "hasAuthority('PATTERN_CANDIDATE_DELETE')"; | ||
| String PATTERN_CANDIDATE_READ_ALL = "hasAuthority('PATTERN_CANDIDATE_READ_ALL')"; | ||
| String PATTERN_CANDIDATE_EDIT_ALL = "hasAuthority('PATTERN_CANDIDATE_EDIT_ALL')"; | ||
| String PATTERN_CANDIDATE_DELETE_ALL = "hasAuthority('PATTERN_CANDIDATE_DELETE_ALL')"; | ||
| String PATTERN_CANDIDATE_TO_PATTERN = "hasAuthority('PATTERN_CANDIDATE_TO_PATTERN')"; | ||
| /** Pattern */ | ||
| String APPROVED_PATTERN_READ = "hasAuthority(APPROVED_PATTERN_READ')"; | ||
TYueksel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| String APPROVED_PATTERN_CREATE = "hasAuthority('APPROVED_PATTERN_CREATE')"; | ||
| String APPROVED_PATTERN_EDIT = "hasAuthority('APPROVED_PATTERN_EDIT')"; | ||
| String APPROVED_PATTERN_DELETE = "hasAuthority('APPROVED_PATTERN_DELETE')"; | ||
| String APPROVED_PATTERN_READ_ALL = "hasAuthority('APPROVED_PATTERN_READ_ALL')"; | ||
| String APPROVED_PATTERN_EDIT_ALL = "hasAuthority('APPROVED_PATTERN_EDIT_ALL')"; | ||
| String APPROVED_PATTERN_DELETE_ALL = "hasAuthority('APPROVED_PATTERN_DELETE_ALL')"; | ||
| /** USER */ | ||
| String USER_READ = "hasAuthority('USER_READ')"; | ||
| String USER_CREATE = "hasAuthority('USER_CREATE')"; | ||
| String USER_EDIT = "hasAuthority('USER_EDIT')"; | ||
| String USER_DELETE = "hasAuthority('USER_DELETE')"; | ||
| String USER_READ_ALL = "hasAuthority('USER_READ_ALL')"; | ||
| String USER_EDIT_ALL = "hasAuthority('USER_EDIT_ALL')"; | ||
| String USER_DELETE_ALL = "hasAuthority('USER_DELETE_ALL')"; | ||
| String USER_ALL = "hasAuthority('USER_ALL')"; | ||
| /** GENERAL */ | ||
| String COMMENT = "hasAuthority('COMMENT')"; | ||
| String VOTE = "hasAuthority('VOTE')"; | ||
| String EVIDENCE = "hasAuthority('EVIDENCE')"; | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.