templates/new_oauth_application.str in rodauth-oauth-0.10.4 vs templates/new_oauth_application.str in rodauth-oauth-1.0.0.pre.beta1
- old
+ new
@@ -1,17 +1,16 @@
<h2>#{rodauth.new_oauth_application_page_title}</h2>
<form method="post" action="#{rodauth.oauth_applications_path}" class="rodauth" role="form" id="oauth-application-form">
- #{rodauth.csrf_tag}
+ #{csrf_tag(rodauth.oauth_applications_path) if respond_to?(:csrf_tag)}
#{rodauth.render('name_field')}
#{rodauth.render('description_field')}
#{rodauth.render('homepage_url_field')}
#{rodauth.render('redirect_uri_field')}
#{rodauth.render('client_secret_field')}
#{rodauth.render('scope_field')}
#{
if rodauth.features.include?(:oauth_jwt)
<<-HTML
- #{rodauth.render('jwt_public_key_field')}
#{rodauth.render('jwks_field')}
HTML
end
}
#{rodauth.button(rodauth.oauth_application_button)}