scinote-web/app/views/users/shared/_azure_sign_in_links.html.erb

8 lines
370 B
Text
Raw Normal View History

2019-12-11 00:24:53 +08:00
<% Rails.configuration.x.azure_ad_apps.select { |uid, config| config[:enable_sign_in] }.each do |uid, config| %>
<div class="form-group">
<%= form_tag user_customazureactivedirectory_omniauth_authorize_path(provider: config[:provider]), method: :post do %>
<%= submit_tag config[:sign_in_label], class: 'btn btn-azure-ad' %>
<% end %>
</div>
<% end %>