[keycloak-user] Trigger verification emails

Benjamin Hansmann [alphaApps] b.hansmann at alphaapps.de
Thu May 21 19:40:22 EDT 2015


On Tue, 2015-05-19 at 02:44 -0400, Stian Thorgersen wrote:
> 
> ----- Original Message -----
> > From: "Benjamin Hansmann [alphaApps]" <b.hansmann at alphaapps.de>
> > To: "keycloak-user" <keycloak-user at lists.jboss.org>
> > Sent: Wednesday, 13 May, 2015 2:24:47 AM
> > Subject: [keycloak-user] Trigger verification emails
> > 
> > For me there is generally only one feature missing now: When using the
> > admin rest api exclusively I would need a way to trigger verification
> > emails. Either as per Jira KEYCLOAK-944 or through Admin-Rest API. Is
> > this planned to be implemented in the near future? If it shouldn't
> > require to dive deep into keycloak internals I would be willing to
> > contribute an admin rest api endpoint to trigger these. Any hints where
> > to start looking in the code on github regarding verification emails and
> > admin rest api?
> 
> This is not on our road-map so you'd have to implement it. It should be relatively easy though as we already have support for sending reset password email, so should be quite trivial to adapt that code to send a verify email email instead.
> 

Thanks Stian. Your're right, it was quite easy to duplicate the
resetPasswordEmail method and adapt the code to send a verification
Email. It was also trivial to add a corresponding method to the
admin-client.

This adds some duplicated boiler-plate code to the services
UsersResource class. Should I do a PR anyway or should that be
refactored? 

> > 
> > Two other remarks:
> > 
> > - If Jira KEYCLOAK-943 (account service rest api) should be implemented
> > one day, a nice to have would be to also provide an registration
> > endpoint.
> 
> KEYCLOAK-943 isn't on our immediate road-map, but this is another low hanging fruit that should be easy to implement, so if you want to do it that'd be great. There's already some support here, but it's limited to retrieving the user profile. This may change a bit in the near future as we're adding auth/required-actions spi that allows custom authentication flows.
> 
> Custom registration is something we've considered, but not planned to add yet. A simple rest endpoint could be the way to do it.
> 
> > - When creating an EventListener it does not get notified when creating
> > a user through Admin Console or Admin REST API, only self-registration
> > triggers onEvent().
> 
> We're adding admin events soon
> 
> > 
> > Best Regards
> > Benjamin
> > 
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> > 






More information about the keycloak-user mailing list