Skip to content

Conversation

tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented Apr 15, 2025

Fixes #8773.

@tnleeuw tnleeuw requested review from evandongen and nielsm5 April 15, 2025 10:33
@tnleeuw tnleeuw self-assigned this Apr 15, 2025
@@ -96,6 +96,7 @@ public class ApiListener extends PushingListenerAdapter implements HasPhysicalDe
* These are names that are never allowed as HTTP parameters, because the Frank!Framework sets these names as session variables.
*/
public static final Set<String> RESERVED_NAMES = Set.of(PipeLineSession.ORIGINAL_MESSAGE_KEY, PipeLineSession.API_PRINCIPAL_KEY, PipeLineSession.HTTP_METHOD_KEY, PipeLineSession.HTTP_REQUEST_KEY, PipeLineSession.HTTP_RESPONSE_KEY, PipeLineSession.SECURITY_HANDLER_KEY, "ClaimsSet", "allowedMethods", "headers", ApiListenerServlet.UPDATE_ETAG_CONTEXT_KEY, "uri", "remoteAddr", ApiListenerServlet.AUTHENTICATION_COOKIE_NAME, MultipartUtils.MULTIPART_ATTACHMENTS_SESSION_KEY);
public static final String DEFAULT_AUTHORIZATION_HEADER = "Authorization";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier kan je denk ik ook gebruik maken van HttpHeaders.AUTHORIZATION, daar staan ze allemaal in als het goed is

Copy link

@@ -1345,11 +1346,9 @@ public void testRequestWithMessageIdAndCorrelationId() throws IOException, Confi
}

@ParameterizedTest
@EnumSource(HttpMethod.class)
//you may not set the OPTIONS method on an ApiListener, the Servlet should handle this without calling the adapter
@EnumSource(value = HttpMethod.class, mode = EnumSource.Mode.EXCLUDE, names = { "OPTIONS" })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tsja, beetje omslachtig vind ik het wel, maar je hebt nu niet 1 test die "ignored" is. En helaas kon ik ook niet direct de enum-waarde zelf gebruiken.

@nielsm5 nielsm5 merged commit c81e704 into master Apr 15, 2025
33 checks passed
@nielsm5 nielsm5 deleted the issue/8773_JWTHeaderWithoutBearer branch April 15, 2025 13:55
tnleeuw added a commit that referenced this pull request Apr 15, 2025
tnleeuw added a commit that referenced this pull request Apr 15, 2025
tnleeuw added a commit that referenced this pull request Apr 15, 2025
tnleeuw added a commit that referenced this pull request Apr 15, 2025
tnleeuw added a commit that referenced this pull request Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to verify JWT token when header value does not start with "Bearer "
3 participants