Create WP user registration/login with 3rd party validation without password

[ad_1]

Hi guys,

I am currently developing a user registration and login-method for a friends WP. Instead of using the regular WP (and the manifold plugins) means of registration, I am using an 3rd party authentication service, which provides me with the name and social security number of the client. This is the usual registration method in the country so the users already how to use it.
As this shall be the sole mean of user registration I don’t want to bother giving passwords. The client shall then just use the 3rd party app for registration and login. The connection and the implementation I already brought to wordpress and this works. The connection to the service works as a qr code scanning and a authentication with phone app and I get in return a API response in JSON format with client namn, given namn, adress etc.

Based on this information and the clients email adress and phone number I want to create a user profile for the user.

1. For registration: User should just fill in email adress, namn, phone number in a form and shall click authenticate registration. -> Here my service comes it, the client authenticates, I get the API JSON response -> Then I wanna trigger the user registration based on the data I just obtained: user\_data {email, phone, namn, given name, social security number}
2. My question now as I am not too familiar with wordpress what would be best practice for:

* 3.1 create user only with email, phone, name
* 3.2 how to trigger the user registration once the 3rd party authentication has been done (as stated I have finished this integration already, I just need information what is the easiest way to trigger a user registration in case the validation has been completed)
* 4. are there plugins facilitating this process?Login method is the same as the registration method. Instead of the login flow with password/mail should scan a qr code, with the social security number in the response I could pull the right user to show for the login. What would be best practice here? Are there any plugins I could facilitate?

Thanks for any advice!

[ad_2]
1 Comment
  1. I don’t want to take credit for giving you this idea as I asked AI but it looked like to gave a good idea.

    [ChatGPT link](https://chat.openai.com/share/4d152e16-669c-46ce-a3d1-0043b74758f4)

    I would think using a plugin like gravity forms to collect the form data would be easier but you mentioned you didn’t want to use a third party plugin.

    Sorry I’m not much help with this but I thought the AI answer could at least be helpful

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer