-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
582 additions
and
38 deletions.
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG TOMCAT_MAJOR_VERSION=10 | ||
ARG TOMCAT_VERSION=10.1.26 | ||
ARG TOMCAT_TARGZ_SHA256=f73f76760137833b3305dfb18ed174f87feac3ab78f65289a0835a851d7cfeb2 | ||
ARG TOMCAT_VERSION=10.1.34 | ||
ARG TOMCAT_TARGZ_SHA256=f799541380bfff2b674cefd86c5376d2d7d566b3a2e7c4579d2b491de8ec6c36 | ||
|
||
FROM eclipse-temurin:21-jdk-alpine AS builder | ||
|
||
|
@@ -41,10 +41,10 @@ RUN apk update && apk add wget && wget -O "apache-tomcat-${TOMCAT_VERSION}.tar. | |
|
||
|
||
# registry.cloudogu.com/official/cas | ||
FROM registry.cloudogu.com/official/java:21.0.4-4 | ||
FROM registry.cloudogu.com/official/java:21.0.5-1 | ||
|
||
LABEL NAME="official/cas" \ | ||
VERSION="7.0.8-9" \ | ||
VERSION="7.0.8-10" \ | ||
maintainer="[email protected]" | ||
|
||
ARG TOMCAT_VERSION | ||
|
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
26 changes: 26 additions & 0 deletions
26
app/src/main/java/de/triology/cas/oidc/beans/delegation/PrincipalGroups.java
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package de.triology.cas.oidc.beans.delegation; | ||
|
||
import org.apereo.cas.authentication.principal.Principal; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PrincipalGroups { | ||
|
||
private final static String groupsAttributeName = "groups"; | ||
|
||
public static List<Object> getGroupsFromPrincipal(Principal principal) { | ||
List<Object> groups = principal.getAttributes().get(groupsAttributeName); | ||
if (groups == null) { | ||
groups = new ArrayList<>(); | ||
} | ||
|
||
return groups; | ||
} | ||
|
||
public static void setGroupsInPrincipal(Principal principal, List<Object> groups) { | ||
principal.getAttributes().put(groupsAttributeName, groups); | ||
} | ||
|
||
|
||
} |
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
Oops, something went wrong.