Is there any way to access to username/password URL parts using Undertow server? It it possible with any other java-based HTTP server?
Asked
Active
Viewed 245 times
0
-
Say what do you want? – Antoniossss Jun 03 '16 at 21:41
-
@Antoniossss i need to parse login and password from request URL, but Undertow's HttpServerExchange object does not contain this info. Undertow returns request URL like 'http://locahost' removing authority part – avarabyeu Jun 03 '16 at 21:48
-
2that is because browsers translate the syntax to basic auth. You should find a header like `Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=`, which when decoded with base64 results in plaintext `username:password` – zapl Jun 03 '16 at 22:14
-
@zapl Thanks a lot! – avarabyeu Jun 03 '16 at 22:26