'How to get login and pass from basic auth in spring boot

I'm writing REST app with spring boot.

I wanted to implement authentication througn basic auth with login and password manually (without using of the spring security)

How can I get login and password in an controller from basic auth data of the rest request?

Please, don't suggest to use spring security, I know it.



Solution 1:[1]

I found the solution which is related with creation of custom filter. Inside the filter you can get access to the request and get the header from it. The header contains encrypted login and password. You can decript it and get login and password.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexander Tukanov