WordPress Plugin for Descope Authentication
Installation is very straight-forward.
Zip up this entire repo and then import it into WordPress on your WordPress Dashboard. You can follow the instructions here.
After installation, you must activate the plugin within your WordPress site:
- Open your WordPress Dashboard.
- Select Plugins from the sidebar, and then Installed Plugins.
- Choose Activate underneath the plugin's name.
Once you have installed and activated your plugin, you must go to the new Descope Settings
menu in the left-hand sidebar and input the following:
Project ID
- this is your Descope Project ID you can get from the settings page here.
If you would like to set up SAML or OIDC SSO, you must also input the fields under the SSO Configuration Tab.
Now that you've set everything up in the background, let's integrate the plugin features in your actual website. To add any of these tags, you'll need to use shortcode blocks. If you're unfamiliar with WordPress, you can add a shortcode block by following these steps here.
First, you're going to want to add the Descope flows tag to one of your pages (this will be where the user signs in). To add the Descope flow page to your website, just add a shortcode block to the main text area of any page, and add the shortcode [descope_wc flow_id="your-flow-id"]
.
The flow_id is the id of the Descope flow that you want to implement in your page. You can edit your flows here, as well as fetch its ID.
Add the [saml_login_form]
or [oidc_login_form]
shortcode to your main page to add SSO capabilities. Follow the steps here.
Add the [onetap_form]
shortcode to your page to add Google One Tap to your WordPress site. Follow the steps here.
Refer to our documentation for more information on setting up Descope flows, SAML/OIDC SSO, and Google One Tap in your Wordpress site.
If you have any questions about Descope, feel free to reach out!