September 19, 2017 at 8:36 pm #18909vishnudas30Participant
I used openam-sample-auth module from here – https://github.com/ForgeRock/openam-auth-sample
I deplyed it and able to login using demo/changeit.
What I want to do is – After login get the session and set 2 custom properties in session.
Could anybody tell me which code to use for creating session in custom module and setting peroperties into it?
There is some code for getting session here – https://backstage.forgerock.com/docs/openam/12/apidocs/src-html/com/sun/identity/authentication/spi/AMLoginModule.html
Not sure if I can use it in my custom module.
SSOToken sess = AuthD.getAuth().getSSOAuthSession();
InternalSession sess = loginState.getSession();September 22, 2017 at 12:42 am #18926Scott HegerParticipant
This would be the job of a post authentication plugin. See: https://backstage.forgerock.com/docs/am/5.1/authentication-guide/index.html#sec-post-authDecember 14, 2017 at 9:34 am #20125vishnudas30Participant
@shegergmail-com – Is there way to write post account creation custom module? I want to send email to user once the account is created successfuly. I am not considering email verification here as if we enable email verification then account is created later after confirming the email. I just want send fyi account is created email to user once he is registered. I have enabled self service. can OpenDJ send the mail once user is created? Please suggest.
You must be logged in to reply to this topic.