You don't. You use the User SPI which you can get to through
KeycloakSession.
On 12 February 2016 at 00:17, Bruno Palermo <palermo(a)pobox.com> wrote:
Stian,
And how can I access the database? Can you point me in the right direction?
Thanks,
Bruno
------------------------------
*From:* Stian Thorgersen <sthorger(a)redhat.com>
*Sent:* Tuesday, November 1, 2016 7:06 AM
*To:* Bruno Palermo
*Cc:* keycloak-user(a)lists.jboss.org
*Subject:* Re: [keycloak-user] Custom Required Action
Only way you'd be able to do it is with a custom realm resource. Required
actions require the session to be processed.
On 11 May 2018 at 00:05, Bruno Palermo <palermo(a)pobox.com> wrote:
> Hi,
>
>
> I'm trying to develop a custom required action to verify the user email
> without relying on the user session and allow the confirmation link to live
> longer.
>
>
> Let's say I send the user email as query parameter on the confirmation
> link.
>
> It's possible to search the database directly using this email and avoid
> using 'RequiredActionContext getUser()'?
>
>
> Thanks,
> Bruno
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>