=== Descope ===
Contributors: descope
Tags: descope, authentication, flows
Stable tag: 1.0.0
Tested up to: 6.8
License: GPLv2
License URI: https://github.com/descope/descope-wordpress/blob/main/LICENSE

This plugin gives you a seamless way for users to login to your WordPress sites using Descope Authentication.

== Description ==

Drag and drop embedded Authentication Flows, Single-Sign-On (SSO), Google OneTap, Protected Pages, and more to your WordPress site.

**Requirements**
</br>
A Descope account. You can sign up for free [here](https://www.descope.com/sign-up).

**Add Embedded Descope Flows to your WP Pages**
</br>
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 to your page, just add a shortcode block to the main text area of any page, and add the shortcode `[descope_wc flow_id="your-flow-id"]`.

**OIDC SSO Shortcode**
</br>
Add the `[descope_oidc_login_form]` shortcode to your main page to add SSO capabilities. Follow the steps [here](https://docs.descope.com/getting-started/web-development-platforms/wordpress#samloidc-sso).

**Google One Tap Shortcode**
</br>
Add the `[descope_onetap_form]` shortcode to your page to add Google One Tap to your WordPress site. Follow the steps [here](https://docs.descope.com/getting-started/web-development-platforms/wordpress#google-one-tap).

**Protected Page Shortcode**
</br>
Add the `[descope_protected_page]` shortcode to your page to redirect users to a specific page if they are not logged in. You will specify the page path you want to redirect the users to in the shortcode itself, for example: [descope_protected_page redirect_page_path="/login-page/"].

**User Profile Widget Shortcode**
</br>
Add the `[descope_user_profile_widget]` shortcode to your page to add the Descope user profile widget to your WordPress site. You can add this anywhere you want to be able to view your user profile, while authenticated with Descope.

**User Syncing**
</br>
The WordPress user table is the source of truth for your site's users. The user table is synced with Descope every 24 hours, but you can also manually sync users under "Sync Users" in the Descope Settings tab of your WordPress dashboard.

**Documentation**
</br>
Refer to our [documentation](https://docs.descope.com/getting-started/web-development-platforms/wordpress) for more information on setting up Descope flows, SSO, and Google One Tap in your Wordpress site.

== Installation ==

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.

**Configuring Descope**
</br>

Once you have installed and activated your plugin, you must go to the new Descope Settings menu in the left-hand sidebar and input your Descope configuration details.