Class BasicAuthenticationExample


  • @EnableAutoStart
    @EnableAutoConfig
    @ComponentScan
    public class BasicAuthenticationExample
    extends Object
    Example to configure an azkarra application with Basic authentication. 1 ) Create a JAAS configuration file 'azkarra-server-jaas.conf' as follows : AzkarraServer { io.streamthoughts.azkarra.http.security.jaas.spi.PropertiesFileLoginModule required file="/tmp/azkarra.password" reloadInterval="60" reload="true" debug="true"; }; 2 ) Create a file containing user's principal information (e.g 'azkarra.password'). #user:password [,roles] admin:admin,Administrator user:user,User 3) Configure your application with : -Djava.security.auth.login.config=/path/to/azkarra-server-jaas.conf
    • Constructor Detail

      • BasicAuthenticationExample

        public BasicAuthenticationExample()
    • Method Detail

      • main

        public static void main​(String[] args)