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

Feature/develop passport #732

Draft
wants to merge 61 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
7ea73f2
commiting changes related to visa implementation
Azher2Ali Apr 14, 2023
8da9be8
commiting changes related to visa implementation
Azher2Ali Apr 14, 2023
05a5387
Merge branch 'develop' into feature/visa
Azher2Ali Apr 18, 2023
c02cb4d
committing changes related to Visa permissions schema
Azher2Ali Apr 19, 2023
806ea71
Committing changes related to visa permission api changes
Azher2Ali Apr 21, 2023
409b799
Committing changes related to visa update api review comment changes
Azher2Ali Apr 21, 2023
07d4ead
Committing changes related to visa update api review comment changes
Azher2Ali Apr 21, 2023
5f7a843
Committing changes related to visa permissions create and update api
Azher2Ali Apr 21, 2023
4d13c01
Merge pull request #687 from overture-stack/feature/visa
Azher2Ali Apr 25, 2023
8c17775
throw exception on auth failure
leoraba Apr 26, 2023
c320557
push docker image for develop-passport
leoraba Apr 26, 2023
e10d449
change clientAuthenticationMethod
leoraba Apr 26, 2023
140c081
Merge pull request #688 from overture-stack/feature/visaPermissions
Azher2Ali Apr 26, 2023
4bfa395
Committing changes related to visaPermission CRUD endpoints implement…
Azher2Ali Apr 26, 2023
99bc18c
SpringBoot 3 migration (#689)
leoraba Apr 27, 2023
5b48827
Merge branch 'feature/develop-passport' into feature/visaPermissionApi
Azher2Ali Apr 28, 2023
9a6367c
committing changes related to remove api fixes
Azher2Ali Apr 28, 2023
94b45f3
Merge remote-tracking branch 'origin/feature/visaPermissionApi' into …
Azher2Ali Apr 28, 2023
c39e6fb
Committing changes related to spring migration
Azher2Ali May 2, 2023
d0cb76e
Committing changes related to clientId fix
Azher2Ali May 3, 2023
fc28033
Merge pull request #691 from overture-stack/feature/clientIdFix
Azher2Ali May 3, 2023
ea59624
Committing changes related to clientId fix
Azher2Ali May 3, 2023
5b9c6f5
Merge pull request #692 from overture-stack/feature/clientIdFix
Azher2Ali May 3, 2023
a91e98a
Merge pull request #690 from overture-stack/feature/visaPermissionApi
Azher2Ali May 4, 2023
a78a900
Commiting changes
Azher2Ali May 5, 2023
9243975
Reverting the changes to feature/develop-passport
Azher2Ali May 5, 2023
3e6c876
changes to Key-Value Backend
Azher2Ali May 5, 2023
4795368
Merge pull request #694 from overture-stack/feature/SecretFix
Azher2Ali May 8, 2023
35044ab
Creating Passport Service
Azher2Ali May 16, 2023
c2e8742
Committing changes related to visa service and passport service
Azher2Ali May 16, 2023
7a3c0c8
Committing changes related to visa service and passport service
Azher2Ali May 16, 2023
360cadc
Committing changes related to passport permissions
Azher2Ali May 19, 2023
735efa9
Committing changes related to passport permissions
Azher2Ali May 19, 2023
b10799a
Committing changes related to passport permissions
Azher2Ali May 19, 2023
ad7789b
Committing changes related to passport visa
Azher2Ali May 19, 2023
9190319
Committing changes related to passport visa
Azher2Ali May 19, 2023
4b71a1f
Update application.yml
Azher2Ali May 19, 2023
029a9ce
update Spring Cloud Vault dependencies
leoraba May 23, 2023
7b30c9b
Committing changes related to caching broker public key
Azher2Ali May 23, 2023
9b24bec
Merge remote-tracking branch 'origin/feature/passportVisa' into featu…
Azher2Ali May 23, 2023
d8c655b
Merge pull request #706 from overture-stack/feature/passportVisa
Azher2Ali May 23, 2023
9cb8e69
Add passport integration
leoraba May 26, 2023
f5b3bec
Changes related to fetching the visas by type and value has been upda…
Azher2Ali May 29, 2023
6eb668d
Merge pull request #707 from overture-stack/feature/passportVisa
Azher2Ali May 29, 2023
c243309
Changes related to error status 400 and updates to deletion of visa
Azher2Ali Jun 1, 2023
2574642
Changes related to updateVisa Controller and adding JWKS token valida…
Azher2Ali Jun 5, 2023
18d3acf
Committing changes related to broker verifier for validating passport…
Azher2Ali Jun 6, 2023
4f16469
Committing changes related to broker verifier for validating passport…
Azher2Ali Jun 6, 2023
85cd6c7
Merge pull request #710 from overture-stack/feature/passportVisa
Azher2Ali Jun 6, 2023
bb7b556
add passport permissions to ego token
leoraba Jun 7, 2023
9cebbcf
Committing changes related to update visa and remove permissions path…
Azher2Ali Jun 7, 2023
b0886d3
Merge pull request #714 from overture-stack/feature/passportVisa
Azher2Ali Jun 7, 2023
2e7eec8
Merge pull request #713 from overture-stack/feature/add_passport_perm…
leoraba Jun 7, 2023
10949a3
Committing changes related to removal passport controller
Azher2Ali Jun 8, 2023
855ca11
Merge pull request #717 from overture-stack/feature/passportEnhancements
Azher2Ali Jun 8, 2023
b2ccb87
multiple passport brokers
leoraba Jun 13, 2023
002742f
add column providerissueruri
leoraba Jun 15, 2023
34831a4
Passport refresh token
leoraba Jun 29, 2023
2996159
Merge pull request #718 from overture-stack/feature/passport-brokers
leoraba Jul 5, 2023
055c872
visas controllers by id
leoraba Jul 6, 2023
3e39457
Merge pull request #724 from overture-stack/feature/add-visa-controll…
leoraba Jul 13, 2023
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
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM adoptopenjdk/openjdk11:jdk-11.0.6_10-alpine-slim as builder
FROM eclipse-temurin:17.0.6_10-jdk-focal as builder
WORKDIR /usr/src/app
ADD . .
RUN ./mvnw package -Dmaven.test.skip=true

#####################################################

FROM adoptopenjdk/openjdk11:jre-11.0.6_10-alpine
FROM eclipse-temurin:17.0.6_10-jre-focal
COPY --from=builder /usr/src/app/target/ego-*-exec.jar /usr/bin/ego.jar
ENV EGO_USER ego
ENV EGO_USER_ID 9999
ENV EGO_GROUP_ID 9999
ENV EGO_DIR /target
RUN addgroup -S -g $EGO_GROUP_ID $EGO_USER \
&& adduser -S -u $EGO_USER_ID -G $EGO_USER $EGO_USER \
RUN addgroup --system --gid $EGO_GROUP_ID $EGO_USER \
&& adduser --system --uid $EGO_USER_ID --ingroup $EGO_USER $EGO_USER \
&& mkdir -p $EGO_DIR \
&& chown -R $EGO_USER $EGO_DIR
USER $EGO_USER_ID
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ spec:
- name: maven
command: ['cat']
tty: true
image: maven:3.6.3-openjdk-11
image: maven:3.8.5-openjdk-17
- name: jdk
tty: true
image: adoptopenjdk/openjdk11:jdk-11.0.7_10-alpine-slim
image: eclipse-temurin:17.0.6_10-jdk-focal
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
Expand Down
100 changes: 64 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.12</version>
<version>3.0.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<java.version>17</java.version>
<mapstruct.version>1.2.0.Final</mapstruct.version>
<grpc.version>1.34.1</grpc.version>
<grpc.version>1.54.0</grpc.version><!-- WIP -->
<!-- Spring security version compatible with Spring boot 3.0.x -->
<spring-security.version>6.0.3</spring-security.version>
</properties>

<dependencies>
Expand All @@ -34,6 +36,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<!-- Moving authorization-server before of starter-security to solve conflicts with JwtEncoder, V1.x compatible with Spring boot 3.0.x -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-authorization-server</artifactId>
<version>1.0.1</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
Expand All @@ -52,8 +62,8 @@

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-authorization-server</artifactId>
<version>0.2.1</version>
<artifactId>spring-security-oauth2-client</artifactId>
<version>6.0.3</version>
</dependency>

<dependency>
Expand All @@ -68,34 +78,31 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.16</version>
<!-- compatible with JDK17 -->
<version>1.18.22</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- API documentation. replacement of springfox-swagger2, compatible with Springboot 3.x -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
<scope>compile</scope>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>4.4.0</version>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>jwks-rsa</artifactId>
<version>0.22.0</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
Expand Down Expand Up @@ -135,25 +142,25 @@
<!-- https://vladmihalcea.com/the-best-way-to-map-an-enum-type-with-jpa-and-hibernate/ -->
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-52</artifactId>
<version>2.2.2</version>
<artifactId>hibernate-types-60</artifactId>
<version>2.21.1</version>
</dependency>

<!-- TestContainers (for testing) -->
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.15.1</version>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>jdbc</artifactId>
<version>1.15.1</version>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.15.1</version>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand All @@ -166,11 +173,11 @@
<version>2.6</version>
</dependency>

<!-- Flyway, for testcontainers -->
<!-- Flyway, for testcontainers V9 compatible with SpringBoot 3 -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>5.2.4</version>
<version>9.16.3</version>
</dependency>


Expand Down Expand Up @@ -241,8 +248,18 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-vault-config</artifactId>
<version>2.1.2.RELEASE</version>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-vault-config-databases</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-core</artifactId>
Expand Down Expand Up @@ -304,6 +321,13 @@
<scope>test</scope>
</dependency>

<!-- Compatibility with Grpc proto generated annotation -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>

<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
Expand Down Expand Up @@ -356,7 +380,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
<fork>true</fork>
<!-- <fork>true</fork>-->
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -389,12 +413,16 @@
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.12.0:exe:${os.detected.classifier}</protocArtifact>
<!-- for Mac OS compatibility -->
<!--<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:osx-x86_64</protocArtifact>-->
<protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.34.1:exe:${os.detected.classifier}</pluginArtifact>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.54.0:exe:${os.detected.classifier}</pluginArtifact>
<!-- for Mac Os compatibility -->
<!--<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:osx-x86_64</pluginArtifact>-->
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -434,7 +462,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.4</version>
<version>2022.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Loading