• Resolved subrat4php

    (@subrat4php)


    I have a multisite or network wp setup and want to use Auth0 plugin for login to all 5 sites i will be creating via multisite concept but i am unable to setup this plugin with multisite. Is this plugin have a compatibility issue or am i making some mistakes?

    I have followed all the necessary steps but no help till now.

    Please help.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Josh C

    (@auth0josh)

    Hi @subrat4php … sorry for the trouble here.

    I’ll be honest, we don’t test with multi-site currently but it’s absolutely on the radar to do so. I’d be happy to work with you to get this running as it will help us add this support faster.

    So, let’s start with the basics … you said “i am unable to setup this plugin with multisite.” What goes wrong? Can you check your plugin error log and see if anything shows there? Your PHP error log might be helpful as well.

    Thank you!

    Thread Starter subrat4php

    (@subrat4php)

    Hi @auth0josh,

    Can you please suggest me the steps to follow to implement it in the multisite setup as i have already removed it from the setup cause there is no option to de-activate the plugin so removed it forcefully.

    I need to re-install it again and re-configure from beginning.

    hope to get support from you ??

    Josh C

    (@auth0josh)

    Yes, definitely happy to help out. You mentioned in your original post that you tried unsuccessfully to get it installed. Can you walk we through what you did and where it stopped working? Were there any error messages?

    I’ll setup a multi-site test on my end and give it a try as well.

    Thanks!

    Thread Starter subrat4php

    (@subrat4php)

    Hi @auth0josh,

    I will again install the plugin in the multisite setup and will update you here. But before that, I have another question…

    I will use two more plugins along with Auth0 they are as follows;

    1. Capability Manager Enhanced
    2. WP Knowledgebase

    I hope Auth0 will work with them.

    ??

    Thread Starter subrat4php

    (@subrat4php)

    @auth0josh

    Here i have mentioned the steps i am following to setup the plugin and configure it;

    1. I have installed the plugin Auth0 (not activated). Then i have created on account with Auth0, when about to create one client as per the plugin instruction, it is saying to create an account in Auth0 (https://auth0.com) and add a new PHP Application.

    https://ibb.co/m4cB8S

    I have not found the PHP Application option is the account. Please check the below link for your better understanding and let me know if i am making any mistake(s).

    https://ibb.co/dSJ18S

    Please advice so that, i can proceed with configuring the plugin with the multisite.

    Waiting for your feedback.

    • This reply was modified 7 years ago by subrat4php.
    Thread Starter subrat4php

    (@subrat4php)

    @auth0josh

    I have got below error log

    03/09/2018 09:40:41
    WP_Auth0_Api_Client::update_client
    http_request_failed
    A valid URL was not provided.

    Josh C

    (@auth0josh)

    Thanks for the update @subrat4php. I’ll take a look at this today or Monday.

    On the installation instructions … sorry for the confusion there, those are not quite up-to-date (made a note to update). Best way to go about it is to install and activate like any other plugin, then follow the setup wizard.

    Thanks for the log entry, that will help me troubleshoot. Stay tuned!

    Thread Starter subrat4php

    (@subrat4php)

    @auth0josh keep updating me please!!!

    ??

    Thread Starter subrat4php

    (@subrat4php)

    @auth0josh,

    Quick question!!!

    Currently i am working in the dev server and have auth0 account with my email id. Will this keep an impact during migration to live server.

    Josh C

    (@auth0josh)

    I’m not sure I totally understand your last question, can you rephrase?

    It’s on my list to take a look at multi-site today. I can’t promise I’ll have a quick fix but, if the issues are straight-forward, I’ll try to get it into the next release.

    Josh C

    (@auth0josh)

    @subrat4php – I just tested this with a local multi-site and everything installed as expected so I’m guessing the problem on your end if with the out-of-date installation instructions.

    I started with a fresh WP multi-site install and activated the plugin per site, not Network Activate. Depending on how you want things to work, you can use the same Client ID and Connection for all of the sites, just run through the “Social” setup for the main site, then use the same Domain, Client ID, and Client Secret for all of the various sites. The only gotcha here is that you’ll need Callback and Logout URLs for each of your various sites or you’ll get an error after logging in.

    I’ll add getting a multi-site installation guide together at some point soon, let me know if you have any specific questions about this.

    Thanks!

    Thread Starter subrat4php

    (@subrat4php)

    Currently i am working in the dev server and have auth0 account with my email id. Will this keep an impact during migration to live server.

    Regarding above point, all the setup i have done by using my own email id not my client’s. After i complete the whole project, will it messup something if i migrate to live server? I need to re-configure auth0 with my client’s auth0 details. Right??

    Thread Starter subrat4php

    (@subrat4php)

    one more query:

    As i want to show posts based on user role i.e. i will assign posts to registered users and they will login to the site and can be able to see what is assigned to them not all posts. Here, wordpress gives flexibility to create role (by code and plugins) but how auth0 will tackle this feature i want. Will wordpress distinguish the user logging in via auth0?

    I have below roles:
    super admin
    site admin (sub sites)
    editor (of each sub site)
    Reader 1 (can see all posts)
    Reader 2 (can see allocated posts)

    I guess you will get my point.

    Thread Starter subrat4php

    (@subrat4php)

    Hi Josh!

    I am still waiting for your reply on the queries i have made around 6 days ago. Please reply back so that I can proceed.

    Josh C

    (@auth0josh)

    @subrat4php – apologies for the delay, I didn’t get the notification for these for some reason …

    Regarding above point, all the setup i have done by using my own email id not my client’s. After i complete the whole project, will it messup something if i migrate to live server? I need to re-configure auth0 with my client’s auth0 details. Right??

    That’s probably a good idea but probably something you’ll need to work out with your client. If you do need to change it, I would do a fresh install for the client site.

    how auth0 will tackle this feature i want. Will wordpress distinguish the user logging in via auth0?

    Auth0 is just used for authentication, in other words is someone allowed to login. Default user roles in WordPress are respected, as you’ve probably seen and storing that in Auth0 would make no difference, really. All of your role management, custom roles, etc. should not be affected by using an Auth0 login.

    I’m going to mark this as resolved since it sounds like the multi-site is working as expected. If you have any more specific questions about the Auth0 plugin, feel free to start a new thread here.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Compatibility with Multisite or network wordrpess’ is closed to new replies.