Plugin shortcodes

wp_cassify_login_with_redirect

Shortcode is used to add link to CAS server login url with redirect parameter filled with service callback url.

Examples

You can use in template file like this :

<div><a href="<?php echo do_shortcode( '[wp_cassify_login_with_redirect service_redirect_url="' . wp_login_url() . '"]' ); ?>">CAS Authentication</a></div>

Or in a post like this :

<a href="[wp_cassify_login_with_redirect service_redirect_url="http://www.dev.lan/sandbox01/wp-login.php"]">CAS Authentication</a></div>

Output

This is the html output in my case :
https://cas.dev.lan/cas/login?service=http://www.dev.lan/sandbox01/wp-login.php