• I have an ASP.NET site that has SSO integration built-in so long as the other site is also ASP.NET. Here are the basic instructions to setup the SSO between the two ASP.NET sites.

    Set the machine key in web.config to be the same on both sites.
    In both web.config files, go to the authentication forms tag and add domain=”example.com” to it (use your own domain name) and set enableCrossAppRedirects=”true”

    Log into the management interface as a System Administrator.

    Click the Menu icon, and from the dropdown select Settings.

    Under the Tools header click External Providers.

    On the Options tab, check the box next to Enable login provider. It’s tab will become active. Click on the tab.

    Complete the following required fields: Web Services URL, Web Services Password, Forgot Password URL, and Default Role for Users.

    Select the Enable single sign-on cookies from other sites checkbox.

    Click the Save button.

    So, I’m wondering, since WP is in PHP, what is the best way to go about this? I want users created on the WP site to be instantly cloned on the ASP.NET site, and also for users to be auto-logged in on the ASP.NET site if they are logged in on the WP site.

    As I said, this functionality is built into the ASP.NET site, so long as the other site is also ASP.NET. Would this plugin help at all with this? https://wp-oauth.com/ Or do I need to make a 3rd site in ASP.NET and then use that to get the user info from the WP site, then connect the two ASP.NET sites using the built-in SSO functionality of the ASP.NET site I’m trying to connect to?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Does ASP.NET support OAuth 2? If not, the plugin will not help. WP can be customized to authorize logins through any sort of HTTP communication you care to conceive of, so something should be possible, but it may require developing a custom ASP.NET API to do so. On the WP side, you hook the “authenticate” filter. The filter callback validates the login credentials by whatever means over HTTP. Upon success, it should return the related WP_User object. On failure it should return a WP_Error object.

Viewing 1 replies (of 1 total)
  • The topic ‘Creating a Single Sign On between a WP site and an ASP.NET site?’ is closed to new replies.