-
Notifications
You must be signed in to change notification settings - Fork 7
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support #322
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 all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
34c0193
[NAE-2118] Implement OpenID Connector Auth for Admin node
Retoocs 74c264a
[NAE-2118] Implement OpenID Connector Auth for Admin node
Retoocs 4fcc520
[NAE-2118] Implement OpenID Connector Auth for Admin node
Retoocs e4999c6
Merge remote-tracking branch 'origin/release/7.0.0-rev3' into NAE-2118
Retoocs 6719ae6
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs f7fd508
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs 5693b3d
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs 8bfeecb
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs e649043
Merge remote-tracking branch 'origin/release/7.0.0-rev3' into NAE-2127
Retoocs 0d073bd
Merge remote-tracking branch 'origin/release/7.0.0-rev4' into NAE-2118
Retoocs 4b7d0f8
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs 59d0cca
Merge remote-tracking branch 'origin/release/7.0.0-rev4' into NAE-2118
Retoocs 735a3f8
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs 039f902
Merge remote-tracking branch 'origin/release/7.0.0-rev5' into NAE-2118
Retoocs 30b0db8
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs 8d9256d
Merge remote-tracking branch 'origin/release/7.0.0-rev4' into NAE-2118
Retoocs fa4a8e7
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs c5677a1
Merge remote-tracking branch 'origin/release/7.0.0-rev4' into NAE-2118
Retoocs 27b6623
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs f2d3c7b
Merge remote-tracking branch 'origin/release/7.0.0-rev5' into NAE-2118
machacjozef 919e21c
Merge remote-tracking branch 'origin/release/7.0.0-rev5' into NAE-2118
machacjozef 65e9a89
Merge remote-tracking branch 'origin/release/7.0.0-rev5' into NAE-2127
machacjozef 1ed5642
Merge remote-tracking branch 'origin/release/7.0.0-rev5' into NAE-2118
Retoocs 6c0105d
Merge remote-tracking branch 'origin/NAE-2118' into NAE-2127
Retoocs 2a7be1e
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs c3239e4
[NAE-2127] Implement DelegatingContextFilter for Multi-Realm Support
Retoocs 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
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
15 changes: 12 additions & 3 deletions
15
.../src/main/java/com/netgrif/application/engine/auth/domain/NetgrifAuthenticationToken.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 |
|---|---|---|
| @@ -1,17 +1,26 @@ | ||
| package com.netgrif.application.engine.auth.domain; | ||
|
|
||
|
|
||
| import com.netgrif.application.engine.objects.auth.domain.Realm; | ||
| import lombok.Getter; | ||
| import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; | ||
|
|
||
| @Getter | ||
| public class NetgrifAuthenticationToken extends UsernamePasswordAuthenticationToken { | ||
|
|
||
| private final String realmId; | ||
| private final String realmName; | ||
| private final Realm realm; | ||
|
|
||
| public NetgrifAuthenticationToken(Object principal, Object credentials, String realmId) { | ||
| public NetgrifAuthenticationToken(Object principal, Object credentials, String realmName) { | ||
| super(principal, credentials); | ||
| this.realmId = realmId; | ||
| this.realmName = realmName; | ||
| this.realm = null; | ||
| } | ||
|
|
||
| public NetgrifAuthenticationToken(Object principal, Object credentials, Realm realm) { | ||
| super(principal, credentials); | ||
| this.realm = realm; | ||
| this.realmName = realm != null ? realm.getName() : null; | ||
| } | ||
|
|
||
| } |
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
3 changes: 0 additions & 3 deletions
3
...common/src/main/java/com/netgrif/application/engine/auth/provider/AuthMethodProvider.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
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.