Especially, bellow articles tell you how to configure security domain(not customized realm) for your applications.:
Most configuration in jboss as 7 can be used in wildfly 8.
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.
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,
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).