jaas

how to integrate angularjs and java jaas based authentication?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 18:41:29
I have a webapp which has angularJS on the frontend and Java on the backed. Angular communicates with the java backend via Restful webservices consuming and sending JSON across HTTP. I need to build the authentication mechanism for this app and was wondering how would be the best approach, currently I'm using JAAS based authentication (JDBC user table). This is how my app is configured: My web.xml configuration has: <login-config> <auth-method>FORM</auth-method> <realm-name>userauth</realm-name> <form-login-config> <form-login-page>/login.html</form-login-page> <form-error-page>/loginError

No JAAS configuration section named 'Server' was foundin '/kafka/kafka_2.12-2.3.0/config/zookeeper_jaas.conf'

﹥>﹥吖頭↗ 提交于 2019-12-01 17:37:32
问题 when i run the zookeeper from the package in the kakfa_2.12-2.3.0 i am getting the following error $ export KAFKA_OPTS="-Djava.security.auth.login.config=/kafka/kafka_2.12-2.3.0/config/zookeeper_jaas.conf" $ ./bin/zookeeper-server-start.sh config/zookeeper.properties and the zookeeper_jaas.conf is KafkaServer { org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="admin-secret" user_admin="admin-secret"; }; and the zookeeper.properties file is server

Using JAAS (Java Authentication and Authorization Service) on Android

余生颓废 提交于 2019-12-01 12:00:45
Is it possible to use JAAS within an android app? In the android API most of the classes of the javax.security.auth package are saying Legacy security code; do not use. But is there any replacement for user-centric JAAS on android? Or might it work if I manually deploy the jaas.jar ? JAAS doesn't really apply to Android. JAAS provides user-centric security to Java-based applications (who is the identity - usually a "user" such as an LDAP user id - that is "running" the application and are they allowed to do what they are trying to). In Android, user IDs are used differently in that each

Using JAAS (Java Authentication and Authorization Service) on Android

允我心安 提交于 2019-12-01 11:07:45
问题 Is it possible to use JAAS within an android app? In the android API most of the classes of the javax.security.auth package are saying Legacy security code; do not use. But is there any replacement for user-centric JAAS on android? Or might it work if I manually deploy the jaas.jar ? 回答1: JAAS doesn't really apply to Android. JAAS provides user-centric security to Java-based applications (who is the identity - usually a "user" such as an LDAP user id - that is "running" the application and

Wildfly and JAAS login module

拜拜、爱过 提交于 2019-12-01 10:57:00
问题 I'm playing with Wildfly-9.0.1.Final and JAAS but I'm not having so much fun.. I implemented my custom login module: public class MongoLoginModule implements LoginModule { @Inject protected MongoDB mongoDb; protected Subject subject; protected Principal identity; protected boolean loginOk; private CallbackHandler callbackHandler; private Map sharedState; private Map options; private Logger log = LoggerFactory.getLogger(MongoLoginModule.class); public boolean abort() throws LoginException {

FailedLoginException encountered when using JAAS LdapLoginModule to authenticate with ActiveDirectory

一曲冷凌霜 提交于 2019-12-01 08:39:53
I'm pulling my hair out try to get LDAP authentication to work with Active Directory. We've just setup a SharePoint Server 2010 and we thought it would be a good idea to also authenticate users against the Active Directory given it's already there for SharePoint. Our environment is Windows Server 2008 R2 Standard. I have one user with username of ahsieh@rdl.com.tw According to this answer https://serverfault.com/a/130556 my provider URL should be ldap://192.168.0.81:389/CN=Users,DC=rdl,DC=com,DC=tw (note that instead of using the hostname of vm-sps.rdl.com.tw, I've elected to use the IP

FailedLoginException encountered when using JAAS LdapLoginModule to authenticate with ActiveDirectory

六眼飞鱼酱① 提交于 2019-12-01 07:21:11
问题 I'm pulling my hair out try to get LDAP authentication to work with Active Directory. We've just setup a SharePoint Server 2010 and we thought it would be a good idea to also authenticate users against the Active Directory given it's already there for SharePoint. Our environment is Windows Server 2008 R2 Standard. I have one user with username of ahsieh@rdl.com.tw According to this answer https://serverfault.com/a/130556 my provider URL should be ldap://192.168.0.81:389/CN=Users,DC=rdl,DC=com

Get HttpSession/Request in a JAAS Login Module

你。 提交于 2019-12-01 06:52:53
I'm trying to obtain the HttpSession or Request in my Login Module. I already tried JACC, but it didn't work. I need this because I have to put a captcha in a login window. Maybe some JAAS ninja knows a better way to do that. I'm using kaptcha to do that. thanks in advance. Fábio Silva I do exactly that in my applications running on JBoss AS. Here's what I do to access the HttpServletRequest from within the login module: HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext(HttpServletRequest.class.getName()); Then I get the session, extract the captcha and validate it

Get HttpSession/Request in a JAAS Login Module

孤街醉人 提交于 2019-12-01 04:47:36
问题 I'm trying to obtain the HttpSession or Request in my Login Module. I already tried JACC, but it didn't work. I need this because I have to put a captcha in a login window. Maybe some JAAS ninja knows a better way to do that. I'm using kaptcha to do that. thanks in advance. 回答1: I do exactly that in my applications running on JBoss AS. Here's what I do to access the HttpServletRequest from within the login module: HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext

Kafka Java Producer with kerberos

女生的网名这么多〃 提交于 2019-12-01 00:31:32
Getting error while sending message to kafka topic in kerberosed enviornment. We have cluster on hdp 2.3 I followed this http://henning.kropponline.de/2016/02/21/secure-kafka-java-producer-with-kerberos/ But for sending messages, I have to do kinit explicitly first, then only I am able to send message to kafka topic. I tried to do knit through java class but that also doesn't work. PFB code: package com.ct.test.kafka; import java.util.Date; import java.util.Properties; import java.util.Random; import kafka.javaapi.producer.Producer; import kafka.producer.KeyedMessage; import kafka.producer