Skip to content

Commit 5b41b45

Browse files
authored
Merge pull request #6 from mpassid/updateVersion
Update IdP version 5
2 parents 67b7d4b + 41b215d commit 5b41b45

File tree

12 files changed

+175
-158
lines changed

12 files changed

+175
-158
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
## Overview
88

99
This module is a [Data Connector](https://shibboleth.atlassian.net/wiki/spaces/IDP4/pages/1265631864/AttributeResolver)
10-
plugin for [Shibboleth Identity Provider v4](https://shibboleth.atlassian.net/wiki/spaces/IDP4/). It
10+
plugin for [Shibboleth Identity Provider v5](https://shibboleth.atlassian.net/wiki/spaces/IDP5/overview). It
1111
implements the user attribute resolution from ECA Auth Data -module, as defined in [EduCloud Alliance's](https://portal.educloudalliance.org/) [ECA Authentication](https://github.com/educloudalliance/eca-docs/blob/master/auth/index.rst) standard. In short, this module
1212
resolves the user attributes via a specific REST API, using two attributes as a hook to the user object stored
1313
behind the API. In the ECA Auth standard context, those two attributes are [AuthnID](https://github.com/mpassid/shibboleth-idp-attribute-authnid) and IdP identifier.
1414

1515
## Prerequisities and compilation
1616

17-
- Java 11+
17+
- Java 17+
1818
- [Apache Maven 3](https://maven.apache.org/)
1919

2020
```

pom.xml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,25 @@ THE SOFTWARE.
2626
<parent>
2727
<groupId>net.shibboleth.idp</groupId>
2828
<artifactId>idp-parent</artifactId>
29-
<version>4.2.1</version>
29+
<version>5.0.0</version>
3030
</parent>
3131

3232
<groupId>fi.mpass</groupId>
33-
<version>1.4</version>
33+
<version>1.5</version>
3434
<packaging>jar</packaging>
3535
<artifactId>idp-attribute-impl-ecadata</artifactId>
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<maven.compiler.source>11</maven.compiler.source>
40-
<maven.compiler.target>11</maven.compiler.target>
41-
<shib.idp.version>4.2.1</shib.idp.version>
39+
<maven.compiler.source>17</maven.compiler.source>
40+
<maven.compiler.target>17</maven.compiler.target>
41+
<shib.idp.version>5.0.0</shib.idp.version>
4242
<commons-io.version>2.7</commons-io.version>
4343
<gson.version>2.9.0</gson.version>
4444
<simpleframework.version>6.0.1</simpleframework.version>
4545
<checkstyle.configLocation>mpassid-checkstyle.xml</checkstyle.configLocation>
4646
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
47-
<automatic.module.name>fi.mpass.shibboleth.attribute.dc.rest</automatic.module.name>
48-
<fi.csc.shibboleth.shibsp>1.0.0</fi.csc.shibboleth.shibsp>
47+
<automatic.module.name>fi.mpass.shibboleth.attribute.dc.rest</automatic.module.name>
4948
</properties>
5049

5150
<repositories>
@@ -83,18 +82,18 @@ THE SOFTWARE.
8382
<dependencies>
8483
<!-- Compile Dependencies -->
8584
<dependency>
86-
<groupId>net.shibboleth.idp</groupId>
87-
<artifactId>idp-attribute-api</artifactId>
85+
<groupId>net.shibboleth</groupId>
86+
<artifactId>shib-attribute-api</artifactId>
8887
<version>${shib.idp.version}</version>
8988
</dependency>
9089
<dependency>
91-
<groupId>net.shibboleth.idp</groupId>
92-
<artifactId>idp-attribute-resolver-api</artifactId>
90+
<groupId>net.shibboleth</groupId>
91+
<artifactId>shib-attribute-resolver-api</artifactId>
9392
<version>${shib.idp.version}</version>
9493
</dependency>
9594
<dependency>
96-
<groupId>net.shibboleth.idp</groupId>
97-
<artifactId>idp-attribute-resolver-spring</artifactId>
95+
<groupId>net.shibboleth</groupId>
96+
<artifactId>shib-attribute-resolver-spring</artifactId>
9897
<version>${shib.idp.version}</version>
9998
</dependency>
10099
<dependency>
@@ -108,11 +107,6 @@ THE SOFTWARE.
108107
<version>${shib.idp.version}</version>
109108
</dependency>
110109

111-
<dependency>
112-
<groupId>${opensaml.groupId}</groupId>
113-
<artifactId>opensaml-core</artifactId>
114-
<version>${opensaml.version}</version>
115-
</dependency>
116110
<dependency>
117111
<groupId>${opensaml.groupId}</groupId>
118112
<artifactId>opensaml-profile-api</artifactId>
@@ -123,16 +117,13 @@ THE SOFTWARE.
123117
<artifactId>opensaml-soap-api</artifactId>
124118
<version>${opensaml.version}</version>
125119
</dependency>
126-
<dependency>
127-
<groupId>fi.csc.shibboleth</groupId>
128-
<artifactId>idp-authn-api-shibsp</artifactId>
129-
<version>${fi.csc.shibboleth.shibsp}</version>
130-
</dependency>
120+
131121

132122

133123
<dependency>
134124
<groupId>net.shibboleth.ext</groupId>
135125
<artifactId>spring-extensions</artifactId>
126+
<version>${shib.idp.version}</version>
136127
</dependency>
137128

138129
<dependency>
@@ -153,22 +144,26 @@ THE SOFTWARE.
153144
<artifactId>commons-io</artifactId>
154145
<version>${commons-io.version}</version>
155146
</dependency>
156-
147+
<dependency>
148+
<groupId>jakarta.servlet</groupId>
149+
<artifactId>jakarta.servlet-api</artifactId>
150+
<scope>provided</scope>
151+
</dependency>
157152
<!-- Provided Dependencies -->
158153

159154
<!-- Runtime Dependencies -->
160155

161156
<!-- Test Dependencies -->
162157
<dependency>
163-
<groupId>net.shibboleth.idp</groupId>
164-
<artifactId>idp-attribute-resolver-impl</artifactId>
158+
<groupId>net.shibboleth</groupId>
159+
<artifactId>shib-attribute-resolver-impl</artifactId>
165160
<type>test-jar</type>
166161
<scope>test</scope>
167162
<version>${shib.idp.version}</version>
168163
</dependency>
169164
<dependency>
170-
<groupId>net.shibboleth.idp</groupId>
171-
<artifactId>idp-attribute-resolver-spring</artifactId>
165+
<groupId>net.shibboleth</groupId>
166+
<artifactId>shib-attribute-resolver-spring</artifactId>
172167
<type>test-jar</type>
173168
<scope>test</scope>
174169
<version>${shib.idp.version}</version>
@@ -188,10 +183,16 @@ THE SOFTWARE.
188183
<version>${shib.idp.version}</version>
189184
</dependency>
190185

186+
<dependency>
187+
<groupId>net.shibboleth.idp</groupId>
188+
<artifactId>idp-testing</artifactId>
189+
<version>${shib.idp.version}</version>
190+
<scope>test</scope>
191+
</dependency>
192+
191193
<dependency>
192194
<groupId>${opensaml.groupId}</groupId>
193-
<artifactId>opensaml-core</artifactId>
194-
<type>test-jar</type>
195+
<artifactId>opensaml-testing</artifactId>
195196
<scope>test</scope>
196197
<version>${opensaml.version}</version>
197198
</dependency>

src/main/java/fi/mpass/shibboleth/attribute/resolver/data/UserDTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import com.google.gson.annotations.SerializedName;
2929

30-
import net.shibboleth.utilities.java.support.logic.Constraint;
30+
import net.shibboleth.shared.logic.Constraint;
3131

3232
/**
3333
* This class defines the data transfer object for the communication with ECA

0 commit comments

Comments
 (0)