Skip to content

Commit f4ef2e4

Browse files
author
Psilo
committed
disable auth-url checking
bump version
1 parent dd7445b commit f4ef2e4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pom.xml

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

1818
<modelVersion>4.0.0</modelVersion>
1919
<artifactId>http-server</artifactId>
20-
<version>0.1.0</version>
20+
<version>0.1.1</version>
2121
<name>HttpServer</name>
2222
<packaging>jar</packaging>
2323

src/main/java/info/unterrainer/commons/httpserver/accessmanager/HttpAccessManager.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,11 @@ private TokenVerifier<AccessToken> persistUserInfoInContext(final Context ctx) {
171171
setTokenRejectionReason(ctx, "Token is no bearer-token.");
172172
return null;
173173
}
174-
if (!token.getIssuer().equalsIgnoreCase(authUrl)) {
175-
setTokenRejectionReason(ctx, "Token has wrong real-url.");
176-
return null;
177-
}
174+
// Disabled to enable getting token from side-channels like 'localhost'.
175+
/*
176+
* if (!token.getIssuer().equalsIgnoreCase(authUrl)) {
177+
* setTokenRejectionReason(ctx, "Token has wrong real-url."); return null; }
178+
*/
178179
return tokenVerifier;
179180

180181
} catch (VerificationException e) {

0 commit comments

Comments
 (0)