Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sha from https://hub.docker.com/layers/library/eclipse-temurin/21-jre-alpine-3.23/images/sha256-693c22ea458d62395bac47a2da405d0d18c77b205211ceec4846a550a37684b6
FROM eclipse-temurin@sha256:693c22ea458d62395bac47a2da405d0d18c77b205211ceec4846a550a37684b6
FROM eclipse-temurin:21-jdk-alpine

# For Amazon Corretto Crypto Provider
RUN apk add --no-cache gcompat
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.uid2</groupId>
<artifactId>uid2-operator</artifactId>
<version>5.66.2</version>
<version>5.66.5-alpha-310-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -23,7 +23,7 @@
<enclave-aws.version>2.1.0</enclave-aws.version>
<enclave-azure.version>2.1.19</enclave-azure.version>
<enclave-gcp.version>2.1.9</enclave-gcp.version>
<uid2-shared.version>11.4.4</uid2-shared.version>
<uid2-shared.version>11.4.5-alpha-341-SNAPSHOT</uid2-shared.version>
<image.version>${project.version}</image.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/uid2/operator/util/RoutingContextUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ public static String getApiContact(RoutingContext rc, IAuthorizableProvider auth
try {
final String authHeaderValue = rc.request().getHeader("Authorization");
final String authKey = extractBearerToken(authHeaderValue);
if (authKey == null) {
return UNKNOWN;
}
final IAuthorizable profile = authKeyStore.get(authKey);
if (profile == null) {
return UNKNOWN;
}
String apiContact = profile.getContact();
return apiContact == null ? UNKNOWN : apiContact;
} catch (Exception ex) {
Expand Down