Giter Club home page Giter Club logo

Comments (4)

tripflex avatar tripflex commented on July 17, 2024 1

Seems as though Microsoft does not care about this at all ... since it's clear nothing has been responded to even since 2017 :(

from active-directory-b2c-wordpress-plugin-openidconnect.

RiaanGouws avatar RiaanGouws commented on July 17, 2024

Hello

I am deploying this plugin in a multi site environment also. Since the documentation for this plugin is non existent - does it support a multi site deployment?

If so, how do I map the network admin and other admin roles to AADB2C groups/user accounts?

Thanks!
Rian

from active-directory-b2c-wordpress-plugin-openidconnect.

TheSaltyKorean avatar TheSaltyKorean commented on July 17, 2024

Seems as though Microsoft does not care about this at all ... since it's clear nothing has been responded to even since 2017 :(

This is open source. Feel free to open up the code and have at it.

from active-directory-b2c-wordpress-plugin-openidconnect.

princeshahnawaz2012 avatar princeshahnawaz2012 commented on July 17, 2024

My WP multisite has more than 300 sites which means I need to store the redirect_urls in Azure AD B2C but this number of redirect_urls cannot be stored in AD B2C I guess. What I do is that when the user logs in through www.abc1.com/wp-admin, it first redirects to B2C login page with the default redirect url(www.abc.com) that I set. Once the token is verified, the user is redirected to their site(www.abc1.com). But it doesn't seem to work.I am even not sure if it is the best approach to redirect the user to site they want to access by this way.

//fetch the user' site id and redirect to the site.
$user_blogs = get_blogs_of_user($userID);
if (!empty($user_blogs)) {
$siteInfo = array();
foreach ($user_blogs as $site_id => $site_values) {
$siteInfo[] = $site_values->siteurl;
}
$redirect_url = $siteInfo[0] ; // to the primary site..
}

// Set cookies to authenticate on WP side
wp_set_auth_cookie($userID);

//Redirect to primary site that assigned to the user
wp_safe_redirect($redirect_url);

Let me know your suggestions how I can handle the process.

from active-directory-b2c-wordpress-plugin-openidconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.