-
Notifications
You must be signed in to change notification settings - Fork 154
Shortcodes
Tim Nolte edited this page Sep 13, 2022
·
2 revisions
This will place a link on the page with some simple styling.
Most parts of the login URL generated with the button/link 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.
-
button_text
- Change the text of the button. -
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
[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>