How can I get the Grizzly HTTP server to allow JaaS for simple HTTP AUTH? I do not see any code / sample. There is another post in StackOverflow that explicitly assumes jaaS is available in Grizzly but does not explain how to add it.
I don't think the Grizzly HTTP server provides basic auth out of the box. If you do not want to use a full-scale implementation, such as Glassfish, you can implement your own filter and add it to the list of grizzly filters. The following is an example of how to retrieve login information through HTTP basic auth and how to integrate it into JAAS objects in a grizzly context. But this requires a significant amount of coding.
http://java.net/projects/jersey/sources/svn/content/trunk/jersey/samples/https-clientserver-grizzly/src/main/java/com/sun/jersey/samples/https_grizzly/auth/SecurityFilter. java? rev = 5160
Hope this helps.
Source: https://habr.com/ru/post/1748000/More articles:Memory management and viewDidUnload? - objective-cHow to efficiently send large files from a database to a browser? - c #Get html that is created via AJAX in webclient - c #C # WebClient - View source question - c #CruiseControl.NET Build Tag Problem - .netCombining EditText and Button? - androidHow can I bind WPF TreeView data to lazy and asynchronous? - asynchronousHow to use java.lang.Terminator correctly? - javaJms message not moving from queue in websphere - javaerror during build using builder builder sandcastle with Visual Studio 2010 .NET 4.0 project - visual-studio-2010All Articles