-
Notifications
You must be signed in to change notification settings - Fork 156
Shortcodes
Jonathan Daggerhart edited this page May 21, 2021
·
2 revisions
This will place a link on the page with some simple styling.
-
button_text
- Change the text of the button.
[openid_connect_generic_login_button button_text="My custom button"]
For great styling flexibility, this shortcode will provide just the login URL.
Most parts of the login URL are configurable as shodrtcode attributes, but it's uncommon to need to modify more than just the redirect_to
attribute. Any attribute not provided in the shortcode will use the plugin settings.
-
endpoint_login
- IDP login endpoint -
scope
- Authorization scopes -
client_id
- Client ID -
redirect_uri
- The WordPress URI the IDP uses to authenticate the request -
redirect_to
- After login, where the visitor should be redirected to on the WordPress site
<a href="[openid_connect_generic_auth_url redirect_to='/some-page-on-the-wordpress-site/']">Login</a>