Skip to content
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

DTS-34986 Central AuthNAuth Spring Boot upgrade #1012

Open
wants to merge 92 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
4026b44
DTS-34986-AuthNAuth-upgrade-final Solving merge conflicts
May 27, 2024
91a6cf2
DTS-34986-AuthNAuth-upgrade-final Fix base response dto
May 27, 2024
d42a822
DTS-34986-AuthNAuth-upgrade-final Small refactor on endpoints after c…
May 30, 2024
83318ad
DTS-34986-AuthNAuth-upgrade-final Add the path when deleting cookies
Jun 3, 2024
e19a3ec
DTS-34986-AuthNAuth-upgrade-final Increase the cookie duration to 1da…
Jun 3, 2024
03ec1af
DTS-34986-AuthNAuth-upgrade-final Update domain
Jun 3, 2024
f302bb6
DTS-34986-AuthNAuth-upgrade-final Solving merge conflicts
May 27, 2024
f58fe58
DTS-34986-AuthNAuth-upgrade-final Fix base response dto
May 27, 2024
6439190
DTS-34986-AuthNAuth-upgrade-final Small refactor on endpoints after c…
May 30, 2024
677a956
DTS-34986-AuthNAuth-upgrade-final Add the path when deleting cookies
Jun 3, 2024
ffe3a5f
DTS-34986-AuthNAuth-upgrade-final Increase the cookie duration to 1da…
Jun 3, 2024
8799a47
DTS-34986-AuthNAuth-upgrade-final Update domain
Jun 3, 2024
6ce9638
DTS-34986-AuthNAuth-upgrade-final Solve merge conflicts
Jun 11, 2024
3ca0945
DTS-34986-AuthNAuth-upgrade-final Solve merge conflicts
Jun 11, 2024
ebcfdb5
DTS-34986-AuthNAuth-upgrade-final Solving merge conflicts
May 27, 2024
45f18d4
DTS-34986-AuthNAuth-upgrade-final Fix base response dto
May 27, 2024
01e1001
DTS-34986-AuthNAuth-upgrade-final Small refactor on endpoints after c…
May 30, 2024
d059e22
DTS-34986-AuthNAuth-upgrade-final Add the path when deleting cookies
Jun 3, 2024
b08240e
DTS-34986-AuthNAuth-upgrade-final Increase the cookie duration to 1da…
Jun 3, 2024
5422c70
DTS-34986-AuthNAuth-upgrade-final Update domain
Jun 3, 2024
86e4d9d
DTS-34986-AuthNAuth-upgrade-final Solve merge conflicts
Jun 11, 2024
329aab4
DTS-34986-AuthNAuth-upgrade-final Increase the cookie duration to 1da…
Jun 3, 2024
07571f9
DTS-34986-AuthNAuth-upgrade-final Update domain
Jun 3, 2024
d5507de
DTS-34986-AuthNAuth-upgrade-final Solve merge conflicts
Jun 11, 2024
87e6ae4
Merge remote-tracking branch 'origin/DTS-34986-AuthNAuth-upgrade-fina…
Jun 11, 2024
bac7717
DTS-34986-AuthNAuth-upgrade-final Restore tools publicis sapient domain
Jun 11, 2024
f6f0117
DTS-34986-AuthNAuth-upgrade-final Remove passwords,secrets and tokens
Jul 1, 2024
744e525
DTS-34986-AuthNAuth-upgrade-final Remove certificate credentials and …
Jul 2, 2024
2787899
DTS-34986-AuthNAuth-upgrade-final Restore roles structure as a list i…
Jul 2, 2024
ea1dcf8
DTS-34986-AuthNAuth-upgrade-final Add GSO changes
Jul 3, 2024
f65a1b1
chnaging permission in dockerfile
sandhami Jul 4, 2024
682e5d2
auth API java8 to java17
sandhami Jul 4, 2024
49dff52
DTS-34986-AuthNAuth-upgrade-final Revert to using .properties config …
Jul 4, 2024
be5b1c6
DTS-34986-AuthNAuth-upgrade-final Revert to using .properties config …
Jul 4, 2024
f015263
adding ssl passphrase
sandhami Jul 5, 2024
6122edb
DTS-34986-AuthNAuth-upgrade-final Add dto and body for requests using…
Jul 5, 2024
2ffcc9b
DTS-34986-AuthNAuth-upgrade-final Add server api key for user approva…
Jul 5, 2024
c54748f
DTS-34986-AuthNAuth-upgrade-final Fix user registration flow
Jul 5, 2024
e9cd2a0
DTS-34986-AuthNAuth-upgrade-final Extract certificates from env varia…
Jul 8, 2024
53f7fa6
Merge pull request #1191 from PublicisSapient/develop
risshukl0 Jul 8, 2024
68ca996
Merge branch 'develop' of https://github.com/PublicisSapient/PSknowHO…
Jul 8, 2024
6b69f8f
exception handel and showing proper msg on UI
Jul 9, 2024
0a91434
change password api end point move to external endpoint
Jul 9, 2024
18b6b0a
change password api end point move to external endpoint
Jul 9, 2024
93aa974
revert changes
Jul 9, 2024
a6c5a37
Merge pull request #1172 from PublicisSapient/DTS-34986-AuthNAuth-upg…
sandhami Jul 10, 2024
4a43795
change password fix
Jul 10, 2024
06be8eb
errors msg fix for forgot password
Jul 10, 2024
dd7263f
fix build issue of maven
Jul 11, 2024
48371c1
Merge pull request #1204 from PublicisSapient/develop
risshukl0 Jul 11, 2024
46c025e
Merge pull request #1209 from PublicisSapient/develop
shunaray Jul 12, 2024
1ed74db
Update application.properties
hirbabar Jul 12, 2024
dffa470
Merge pull request #1218 from PublicisSapient/develop
shunaray Jul 12, 2024
99b4d4a
Merge pull request #1223 from PublicisSapient/develop
risshukl0 Jul 15, 2024
e6c38de
Merge pull request #1228 from PublicisSapient/develop
HinPublicis Jul 16, 2024
49b9f1d
Merge pull request #1235 from PublicisSapient/develop
risshukl0 Jul 17, 2024
77fdd11
Merge pull request #1241 from PublicisSapient/develop
risshukl0 Jul 19, 2024
0b0dd1e
Merge pull request #1244 from PublicisSapient/develop
risshukl0 Jul 19, 2024
9c5845c
Merge pull request #1247 from PublicisSapient/develop
Chittauri Jul 22, 2024
604db6f
Merge pull request #1251 from PublicisSapient/develop
risshukl0 Jul 23, 2024
0680374
Merge pull request #1270 from PublicisSapient/develop
risshukl0 Jul 25, 2024
a662bc1
Merge pull request #1276 from PublicisSapient/develop
risshukl0 Jul 25, 2024
abb54de
Merge pull request #1277 from PublicisSapient/develop
hirbabar Jul 26, 2024
af9dc3c
Merge pull request #1281 from PublicisSapient/develop
hirbabar Jul 26, 2024
6ba6f54
Merge pull request #1284 from PublicisSapient/develop
sandhami Jul 26, 2024
6e02a44
Merge pull request #1290 from PublicisSapient/develop
risshukl0 Jul 29, 2024
cbd5739
Merge pull request #1292 from PublicisSapient/develop
kunkambl Jul 29, 2024
612d06a
Merge pull request #1274 from PublicisSapient/qa-master
sandhami Jul 29, 2024
778389d
[maven-release-plugin] prepare release 10.0.0
Jul 30, 2024
e0e8323
[maven-release-plugin] prepare for next development iteration
Jul 30, 2024
6bf652f
DTS-00000 Add AUTH_BASE_URL env var
razvan-georgescu-tm Aug 2, 2024
e823ee5
changes for AUTH_BASE_URL
hirbabar Aug 2, 2024
f51033d
DTS-00000 Update application.properties
razvan-georgescu-tm Aug 5, 2024
a725cbf
DTS-00000 Update content security policy on both server and nginx
razvan-georgescu-tm Aug 5, 2024
b1ecbe2
DTS-00000 Bump version
razvan-georgescu-tm Aug 6, 2024
347256a
Merge branch 'master' into DTS-34986-AuthNAuth-upgrade-final
razvan-georgescu-tm Aug 6, 2024
acbb753
DTS-00000 Change styling for credentials login
razvan-georgescu-tm Aug 6, 2024
f4329de
added AUTH_BASE_URL
hirbabar Aug 14, 2024
adba6fc
Update nginx_dev.conf
rapkalya Aug 14, 2024
8b35e75
Update nginx_prod.conf
rapkalya Aug 14, 2024
0866974
Update nginx_prod.conf
rapkalya Aug 14, 2024
0464468
Update nginx_prod.conf
rapkalya Aug 14, 2024
c4b8e94
Update nginx_dev.conf
rapkalya Aug 30, 2024
68b852f
Update Dockerfile
rapkalya Aug 30, 2024
3c811d6
Update env.sh
rapkalya Aug 30, 2024
dab52d6
Update nginx_prod.conf
rapkalya Aug 30, 2024
898d319
Update nginx_prod.conf
rapkalya Aug 30, 2024
acdda3d
Update nginx_dev.conf
rapkalya Aug 30, 2024
494b302
DTS-00000 Set domain on cookie deletion header
razvan-georgescu-tm Sep 10, 2024
06436b8
DTS-00000 Add inline script hash to CSP
razvan-georgescu-tm Sep 12, 2024
c938452
DTS-00000 Fix cookie deletion
razvan-georgescu-tm Sep 12, 2024
3be0454
DTS-00000 Fix cookie deletion
razvan-georgescu-tm Sep 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
262 changes: 239 additions & 23 deletions central-auth-service/authapi/pom.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>authapi</artifactId>
<modelVersion>4.0.0</modelVersion>
<artifactId>authapi</artifactId>
<groupId>com.publicissapient.kpidashboard.apis</groupId>
<version>1.0.0</version>
<version>2.0.0</version>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<version>3.2.0</version>
<relativePath />
</parent>
<repositories>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone</url>
</repository>
<repository>
<id>shibboleth-releases</id>
<name>Shibboleth Releases</name>
<url>https://build.shibboleth.net/nexus/content/repositories/releases/</url>
</repository>
<repository>
<id>spring-milestone</id>
<url>https://repo.spring.io/milestone</url>
</repository>
<repository>
<id>spring-snapshot</id>
<url>https://repo.spring.io/snapshot</url>
</repository>
</repositories>
<description>Authentication service</description>
<properties>
<java.version>1.8</java.version>
<guava.version>31.1-jre</guava.version>
<java.version>17</java.version>
<guava.version>33.0.0-jre</guava.version>
<final.name>authnauth</final.name>
<spring.core.version>6.1.3</spring.core.version>
<lombok.version>1.18.24</lombok.version>
<sonar.coverage.exclusions>
**com/publicissapient/kpidashboard/**/*Application.java,
**com/publicissapient/kpidashboard/**/model/**/*,
Expand All @@ -43,31 +58,140 @@
</properties>
<dependencies>
<dependency>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>authcommon</artifactId>
<version>${project.version}</version>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>6.2.0</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<artifactId>spring-security-config</artifactId>
<version>6.2.0</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.4.14</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.14</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.extensions</groupId>
<artifactId>spring-security-saml2-core</artifactId>
<version>2.0.0.M31</version>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-saml2-service-provider</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-core</artifactId>
<version>4.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-api</artifactId>
<version>4.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-impl</artifactId>
<version>3.2.0</version>
<version>4.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.santuario/xmlsec -->
<dependency>
<groupId>org.apache.santuario</groupId>
<artifactId>xmlsec</artifactId>
<version>4.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.77</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.2.1</version>
</dependency>
<dependency>
<groupId>com.vladmihalcea</groupId>
Expand All @@ -77,6 +201,12 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
Expand Down Expand Up @@ -104,16 +234,38 @@
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.10-FINAL</version>
<version>5.2.5</version>
<exclusions>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</exclusion>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.10-FINAL</version>
<version>5.2.5</version>
<exclusions>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -135,6 +287,12 @@
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -143,49 +301,107 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.13.1</version> <!-- Use the version that matches your Jackson version -->
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
<build>
<finalName>${final.name}</finalName>
<finalName>${final.name}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>exec</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<executions>
<execution>
<id>build</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ public class AuthNAuthApplication {
public static void main(String[] args) {
SpringApplication.run(AuthNAuthApplication.class, args);
}

}
Loading
Loading