File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/main/java/info/unterrainer/commons/httpserver/accessmanager Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
<modelVersion >4.0.0</modelVersion >
19
19
<artifactId >http-server</artifactId >
20
- <version >0.1.0 </version >
20
+ <version >0.1.1 </version >
21
21
<name >HttpServer</name >
22
22
<packaging >jar</packaging >
23
23
Original file line number Diff line number Diff line change @@ -171,10 +171,11 @@ private TokenVerifier<AccessToken> persistUserInfoInContext(final Context ctx) {
171
171
setTokenRejectionReason (ctx , "Token is no bearer-token." );
172
172
return null ;
173
173
}
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
+ */
178
179
return tokenVerifier ;
179
180
180
181
} catch (VerificationException e ) {
You can’t perform that action at this time.
0 commit comments