Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keycloak-gss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Provoz
gss
keycloak-gss
Commits
0473bc19
Commit
0473bc19
authored
7 months ago
by
Johaney-s
Browse files
Options
Downloads
Patches
Plain Diff
fixed test
parent
2b080254
No related branches found
No related tags found
No related merge requests found
Pipeline
#12455
passed
7 months ago
Stage: build
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
authenticator/src/main/java/cz/cesnet/keycloak/CustomAuthenticator.java
+5
-3
5 additions, 3 deletions
...src/main/java/cz/cesnet/keycloak/CustomAuthenticator.java
with
5 additions
and
3 deletions
authenticator/src/main/java/cz/cesnet/keycloak/CustomAuthenticator.java
+
5
−
3
View file @
0473bc19
...
...
@@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory;
import
jakarta.ws.rs.core.Response
;
import
java.util.Locale
;
import
java.util.Map
;
public
class
CustomAuthenticator
implements
Authenticator
{
...
...
@@ -41,12 +42,13 @@ public class CustomAuthenticator implements Authenticator {
public
void
authenticate
(
AuthenticationFlowContext
context
)
{
log
.
warn
(
"Custom EGI authenticator"
);
AuthenticationSessionModel
authSession
=
context
.
getAuthenticationSession
();
Map
<
String
,
String
>
userSessionNotes
=
authSession
.
getUserSessionNotes
();
log
.
warn
(
userSessionNotes
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
userSessionNotes
.
entrySet
())
{
log
.
warn
(
"User Session Note - Key: "
+
entry
.
getKey
()
+
", Value: "
+
entry
.
getValue
());
if
entry
.
k
ey
().
equals
(
EDU_PERSON_ENTITLEMENT
)
{
if
(
entry
.
getK
ey
().
equals
(
EDU_PERSON_ENTITLEMENT
)
)
{
log
.
warn
(
"Got the entitlement!"
);
}
}
...
...
@@ -60,7 +62,7 @@ public class CustomAuthenticator implements Authenticator {
// }
// If the user has the required entitlement or didn't log in via the EGI Check-in IdP
context
.
success
();
//
context.success();
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment