-
1. Re: How to add a custom realm to WildFly?
ybxiang.china Jan 5, 2014 9:30 PM (in response to rsoika)JBoss AS 7.2.0 - Java EE application development - 00.Sumarry (English Version)
Especially, bellow articles tell you how to configure security domain(not customized realm) for your applications.:
JBoss AS 7.2.0 - Java EE application development - 04.How to configure SSL
JBoss AS 7.2.0 - Java EE application development - 05.How to configure Security domain and JAAS - part.1 and part.2
Most configuration in jboss as 7 can be used in wildfly 8.
-
2. Re: How to add a custom realm to WildFly?
rodrigo.uchoa Apr 1, 2015 12:08 PM (in response to rsoika)Did anyone got this working? I'm having a hard time configuring a custom security domain in Wildfly 8.2.0. Nothing seems to work.
-
3. Re: How to add a custom realm to WildFly?
rsoika Aug 27, 2015 1:54 PM (in response to rodrigo.uchoa)I wrote a blog how to configure wildfly for my own project. There is also information how I setup a database security domain for wilfly 8
-
4. Re: How to add a custom realm to WildFly?
h3ph4 Dec 29, 2015 4:48 AM (in response to rsoika)Hi.
First I apologise for the bad english.
I read your article and I have a few questions.
I managed to create "JdbcRealm" using security-domain configuration, but, I am confused around the concepts of "security-realm" and "security-domain".
From what I could see on the web about wildfly, the realm should be used to manage remote access to the server and the "security-domain" should be used to manage authentication and authorisation at application level.
In your example, you speak about configurating the "security-realm" but what I see is a configuration of a "security-domain". So here are my questions :
How are they linked/referenced/binded to each other ?
If not what is the purpose of the "ApplicationRealm" if you manage everything in your "security-domain"?
Is it possible to use a "security-domain" to realise a Form based and file base authentication/authorisation (wich is what I would like to do in fact)?
Sorry for the multiple questions ending, but I am kind of lost at the moment,
Regards,
-
5. Re: How to add a custom realm to WildFly?
rsoika Dec 29, 2015 6:56 AM (in response to h3ph4)Hi,
what you need is a security-domain in your standalone.xml configuration file. Don't be confused of the term 'security realm'.
But the concept of realms is part of the web.xml configuration in your web application. So this is the place where you define the realm name and the auth-method (Basic or form based).
===
Ralph