Skip to content

Commit

Permalink
Merge pull request #220 from inversion-api/dq/modify-authAction-to-ac…
Browse files Browse the repository at this point in the history
…cept-groups-from-other-JWT_2

0.9.27.2
  • Loading branch information
wellsb1 authored Mar 16, 2022
2 parents e0c5e1b + c727c1d commit 9803013
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 42 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.9.27.1
version=0.9.27.2

#We attempt to keep these libs in sync with the spring boot lib versions.
# @see https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-dependency-versions.html#dependency-versions-coordinates
Expand Down
2 changes: 1 addition & 1 deletion inversion-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-api</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,17 @@ protected User createUserFromValidJwt(DecodedJWT jwt) {
c = jwt.getClaim("groups");
if (c != null && !c.isNull()) {
List<String> groups = c.asList(String.class);
user.withRoles(groups.toArray(new String[0]));
if (groups != null) {
user.withRoles(groups.toArray(new String[0]));
}
}

c = jwt.getClaim("roles");
if (c != null && !c.isNull()) {
List<String> roles = c.asList(String.class);
user.withRoles(roles.toArray(new String[0]));
if (roles != null) {
user.withRoles(roles.toArray(new String[0]));
}
}

c = jwt.getClaim("tenantId");//legacy support
Expand Down
6 changes: 3 additions & 3 deletions inversion-azure-functions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-azure-functions</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-azure-functions</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand Down Expand Up @@ -42,13 +42,13 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions inversion-cosmosdb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-cosmosdb</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-cosmosdb</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand Down Expand Up @@ -42,13 +42,13 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
24 changes: 12 additions & 12 deletions inversion-demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-demos</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-demos</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,67 +36,67 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-cosmosdb</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-dynamodb</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-elasticsearch</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-kinesis</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-lambda</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-redis</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-s3</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-script</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-spring-boot</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions inversion-dynamodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-dynamodb</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-dynamodb</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand Down Expand Up @@ -42,13 +42,13 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions inversion-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-elasticsearch</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-elasticsearch</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,13 +36,13 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-jdbc</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-jdbc</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-kinesis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-kinesis</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-kinesis</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-lambda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-lambda</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-lambda</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-redis</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-redis</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-s3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-s3</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-s3</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-script/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-script</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-script</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions inversion-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.inversion</groupId>
<artifactId>inversion-spring-boot</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<name>inversion-spring-boot</name>
<description>Inversion Cloud API Engine</description>
<url>https://inversion.io</url>
Expand All @@ -36,7 +36,7 @@
<dependency>
<groupId>io.inversion</groupId>
<artifactId>inversion-api</artifactId>
<version>0.9.27</version>
<version>0.9.27.2</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 9803013

Please sign in to comment.