authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Activation flow for new users

Open buzzard10 opened this issue 2 years ago • 9 comments

Describe your question/ I've created flow which works for activation of new users. Through API i'm using endpoint /core/users/{id}/recovery/ to generate new link for password set. I would like to know how to use GET /core/users/{id}/recovery_email/. I've added to my flow email stage but it doesn't work. Any ideas? Here you have diagram:

Screenshots image

buzzard10 avatar May 29 '23 13:05 buzzard10

Hi @buzzard10 could you share your Email Stage (email-activation) configuration?

pinarruiz avatar May 29 '23 14:05 pinarruiz

@pinarruiz of course! image

buzzard10 avatar May 29 '23 14:05 buzzard10

I am guessing you are sending this email to the user itself right?

pinarruiz avatar May 29 '23 14:05 pinarruiz

@pinarruiz i would like to, but while i'm posting an API request, i have error "Server error"

buzzard10 avatar May 29 '23 14:05 buzzard10

If i am not wrong, maybe try to disable the superuser requirement (Edit -> Authentication = No Requirement). I dont still know if I am getting the use case for the flow right.

Edit: typo

pinarruiz avatar May 29 '23 14:05 pinarruiz

@pinarruiz it doesn't work ;c

buzzard10 avatar May 29 '23 14:05 buzzard10

Could you explain a little bit more how the flow is meant to be used?

pinarruiz avatar May 29 '23 14:05 pinarruiz

Of course. I'm creating an integration with CRM which will automatically create user account in authentik after i'll add new customer to crm. I want to automatically generate account and send link to a customer which will allow him to set password for his account. I can do it now with temporary link (first endpoint mentioned above), but then i have to send this link to a customer by myself. So i'm trying to do this through authentik

buzzard10 avatar May 29 '23 14:05 buzzard10

@buzzard10 The "Server error" response shouldn't happen, are there any error messages in the server container's logs? Looking at the diagram of the flow you posted, it looks correct. The endpoint you mentioned above also requires a POST request now.

BeryJu avatar May 23 '24 16:05 BeryJu