Oauth-disconnect_form Tag
Renders a form that disconnects an OAuth provider from the current user's account.
Overview#
The oauth:disconnect_form tag renders a form to disconnect an OAuth provider from the current user's account. It's typically used inside an {{ oauth }} loop.
{{ oauth }}
{{ if connected }}
{{ oauth:disconnect_form :provider="name" }}
<button type="submit">Disconnect {{ label }}</button>
{{ /oauth:disconnect_form }}
{{ /if }}
{{ /oauth }}
<s:oauth>
@if ($connected)
<s:oauth:disconnect_form :provider="$name">
<button type="submit">Disconnect {{ $label }}</button>
</s:oauth:disconnect_form>
@endif
</s:oauth>
Disconnecting requires an elevated session. If the user doesn't have one, they'll be redirected to do so before being sent back to complete the disconnect.
Parameters
provider
string
The provider to disconnect. Required.
HTML Attributes
Set HTML attributes as if you were in an HTML element. For example, class="disconnect-form".