[midPoint] Self-Registration On external Page

Loïc Schamber lschamber at serial.ch
Wed Apr 15 14:51:39 CEST 2020


Hi Elsa,

First, Thanks for your answer.
Sadly this part works just great. My problem is that I would like to add a email verification system (with link).
As it already exists for self-registration I think that it must be possible to reuse it for API created user but I can not found information about it.
Any ideas?

Loïc Schamber  | Junior IT Consultant

[logo]<https://www.serial.ch/>

lschamber at serial.ch<mailto:lschamber at serial.ch> |  +41 22 555 27 69<tel:+41%2022%20555%2027%2069>
Chemin du Pré-Fleuri 5 - CH 1228 Plan-les-Ouates
[LinkedIn]<https://www.linkedin.com/company/redcactus-by-positivethinkingcompany>  [Instagram] <https://www.instagram.com/positivethinkingcompany>
Redcactus by SERIAL www.serial.ch<www.serial.ch>
www.positivethinking.co

________________________________
Help save paper, do you really need to print this email?
The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Thank you for your cooperation.

From: midPoint <midpoint-bounces at lists.evolveum.com> On Behalf Of Gómez Martínez, Elsa
Sent: mercredi, 15 avril 2020 14:36
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Subject: Re: [midPoint] Self-Registration On external Page

Hi Loïc,

I don't know if that is what you are looking for but in the API documentation you can "Create new object", so I think that you can use your ASP.NET web application, take the data and use the API REST to register a new user.

Maybe something like this:

curl --user user:password -H "Content-Type: application/xml" -X PUT http://yourmidPoint_Server:yourmidPoint_Port/midpoint/ws/rest/users -d @fileUsersAttributes.xml

Elsa

De: midPoint <midpoint-bounces at lists.evolveum.com<mailto:midpoint-bounces at lists.evolveum.com>> En nombre de Loïc Schamber
Enviado el: miércoles, 15 de abril de 2020 9:01
Para: midPoint General Discussion <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>
Asunto: [midPoint] Self-Registration On external Page

Hi everyone.

I had to set up a registration page that is a bit complex, with fields that are displayed or hidden according to user selection.
In order to do so I created an ASP.NET web application where I displayed a form with all the required field.
As I didn't found information about registration in the API documentation (https://wiki.evolveum.com/display/midPoint/REST+API) I decided to use the create endpoint in order to create the user with the information of the form.
The user is created in midpoint and everything works great.

Now, I would like to trigger the userRegistrationNotifier in order to validate the user email address using a generated link. (Like in the self-registration configuration  https://wiki.evolveum.com/display/midPoint/Self+Registration+Configuration)
Is there any way to trigger the userRegistrationNotifier manually or am I supposed to add this process to my custom web application.
I need the userRegistrationNotifier so I can use the midpoint.createRegistrationConfirmationLink(userType) method, but if there is another way to send the link by email I am open to suggestions!

Thanks a lot for your time.


Loïc Schamber  | Junior IT Consultant

[logo]<https://www.serial.ch/>

lschamber at serial.ch<mailto:lschamber at serial.ch> |  +41 22 555 27 69<tel:+41%2022%20555%2027%2069>
Chemin du Pré-Fleuri 5 - CH 1228 Plan-les-Ouates
[LinkedIn]<https://www.linkedin.com/company/redcactus-by-positivethinkingcompany>  [Instagram] <https://www.instagram.com/positivethinkingcompany>
Redcactus by SERIAL www.serial.ch<www.serial.ch>
www.positivethinking.co

________________________________
Help save paper, do you really need to print this email?
The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Thank you for your cooperation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/fd7b504f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6827 bytes
Desc: image001.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/fd7b504f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 451 bytes
Desc: image002.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/fd7b504f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1129 bytes
Desc: image003.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/fd7b504f/attachment-0002.png>


More information about the midPoint mailing list