-
Notifications
You must be signed in to change notification settings - Fork 81
Allow JWT Token to omit "Bearer" when it is a non-standard header. #8818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -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"; |
There was a problem hiding this comment.
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
|
@@ -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" }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow...
There was a problem hiding this comment.
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.
) (cherry picked from commit c81e704)
) (cherry picked from commit c81e704)
) (cherry picked from commit c81e704)
) (cherry picked from commit c81e704)
) (cherry picked from commit c81e704)
Fixes #8773.