[midPoint] Self-Registration On external Page

Gómez Martínez, Elsa egomezm at minsait.com
Wed Apr 15 14:36:13 CEST 2020


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> 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>
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>
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
  


 <https://www.serial.ch/> 

 

 <mailto:lschamber at serial.ch> lschamber at serial.ch |
<tel:+41%2022%20555%2027%2069> +41 22 555 27 69 
Chemin du Pré-Fleuri 5 – CH 1228 Plan-les-Ouates 


 <https://www.linkedin.com/company/redcactus-by-positivethinkingcompany>
<https://www.instagram.com/positivethinkingcompany> 

	Redcactus by SERIAL 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/18738c0d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6827 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/18738c0d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 451 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/18738c0d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1129 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/18738c0d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6049 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200415/18738c0d/attachment.bin>


More information about the midPoint mailing list