Programmatically create users in JAS
We want to use JAS for authenticating users using saml. Is there a way to programmatically create users in JAS? For me, the only alternatives seem to be:
a) manipulate the basicUserRegistry.xml
b) use an external LDAP as a registry
Is there an alternative using some JAS API?
Thanks in advance!
One answer
For a), I don't think it has anything to do with JAS. You can just use Liberty API (if available).
If you're really using SAML, is there any reason you want to programmatically create users in JAS? When you choose to use SAML, the authenticated subject (the user) comes from the IdP (for example ADFS), not JAS itself. JAS needs to handle group mapping though, as it is not part of SAML.