X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fa11baf5c348d6eb4ca00d6d15cf9893626fa2d6..406b46e49b786fab879286d77735b2a16c1cfcc5:/vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb diff --git a/vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb b/vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb new file mode 100644 index 000000000..0607eb45e --- /dev/null +++ b/vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb @@ -0,0 +1,14 @@ +

Authorize access to your account

+

Would you like to authorize <%%= link_to @token.client_application.name,@token.client_application.url %> (<%%= link_to @token.client_application.url,@token.client_application.url %>) to access your account?

+<%% form_tag authorize_url do %> + <%%= hidden_field_tag "oauth_token", @token.token %> + <%%- if params[:oauth_callback] -%> + <%%= hidden_field_tag "oauth_callback", params[:oauth_callback] %> +<%%- end -%> +

+ <%%= check_box_tag 'authorize' %> authorize access +

+

+ <%%= submit_tag %> +

+<%% end %> \ No newline at end of file