How to get LoginContext object in Custom Authentication Handler?
Hi Experts,
I am writing an Custom Authentication handler in AEM in order to achieve the SSO functionality with Kerberos token. The code to decode the service token needs the LoginContext object. Below is the sample code
this.loginContext = new JaasLoginContext("jackrabbit.oak", handler);
this.loginContext.login();
when i am trying to execute the above code i am getting below error
javax.security.auth.login.LoginException: unable to find LoginModule class: org.apache.felix.jaas.boot.ProxyLoginModule
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
Can you guys help in understanding how to get the LoginContext object in Custom Authentication Handler sample code would be rally helpful?