<%init>
return unless RT->Config->Get('EnableOAuth2');
</%init>
<div id="authen-oauth-login">
% my $next_state = $session{NextPage}->{$ARGS{next} || ''};
% $next_state = $next_state->{url} if ref $next_state;
<span class="input"><a
href="<%RT->Config->Get('WebPath')%>/NoAuth/OAuth<% $next_state ?  "?next=$next_state" : "" %>"><img src="<% RT->Config->Get('WebPath') . RT::Authen::OAuth2::IDPLoginButtonImage() %>" alt="<% loc('Log in using OAuth 2') %>" /></a></span>
</div>
