• Hi. I need to automatically create a WordPress user at the same time as I create a Firebase user. That is, the user will go through the normal account creation UI provided by Firebase and then I’d like to create a WordPress user using the Firebase credentials.

    The user doesn’t directly interact with WordPress, but I have an application server that does.

    How do I create the Firebase user account and then immediately create and link the WordPress user? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dale Nguyen

    (@hanthuy)

    Hi Crowdfunder,

    If you use the Free version of the plugin, you have to add the WordPress endpoint manually in order to create a new user through API.

    If you’re using the PRO version of the plugin, new user is created automatically after they log in with Firebase credentials in WordPress.

    You can check the docs here: https://firebase-wordpress-docs.readthedocs.io/en/latest/wordpress-user-integration.html

    Thanks,

    Thread Starter crowdfunder

    (@crowdfunder)

    As I said, the user doesn’t log in to WordPress directly. My application creates a WordPress account for them and interacts with WordPress REST APIs on their behalf. The user never interacts directly with WordPress site.

    You said that a new user is created when they log in. But they don’t log in, only my app accesses WordPress.

    So how would I use the normal Firebase auth process and automatically create a WordPress user in the same process without the user having to log in to a WordPress site.

    Thread Starter crowdfunder

    (@crowdfunder)

    Is it this?
    Endpoint: POST https://example.com/firebase/v2/users/register

    If so, then it seems that I have to send email/password in body. Therefore, I can only use Firebase SDK Authentication, not FirebaseUI Authentication.

    Is that correct?

    Thread Starter crowdfunder

    (@crowdfunder)

    Sorry, one more point: The user may ultimately log into WordPress and I want them to use the firebase password. However, there may be some time between when they create their firebase user and when they log into WordPress. And in that time, I need create a WordPress user for them and save data with it that is necessary to support my application.

    In other words, I cannot wait for them to log into WordPress to create their WordPress User.

    Hello, I am trying to do this very thing. I have a mobile app where I want a new user to be created in WordPress when users sign up in the firebase app. I found this in the user guide:

    Create a new WordPress User through API
    The Integrate Firebase PRO has its own Restful API endpoints that help to create a new WordPress user. In this scenario, when you have a mobile app, and you want to duplicate user in WordPress, you can call the API to create a new User after user register on your app.

    Endpoint: POST https://example.com/firebase/v2/users/register

    Example payload: {
    username: ‘dale’,
    email: ‘[email protected]’,
    password: ‘the-password’
    }

    But it does not mention how to authenticate in order to create the user. Is there any way you could share whether you figured this out? Or, could support please provide more information on this?

    Thanks

    @crowdfunder sir were you ever able to figure this out? The user guide mentions that a new user can be created via an endpoint built into the plugin, but then gives no information about whether authentication is needed, how to set the headers, or anything, and I can’t get anybody to answer my questions about it. Can you please let me know if you ever figured this out, and if you can refer me to a y I formation about how to do it.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Create Firebase user and WordPress user through API’ is closed to new replies.