vagrant-wordpress/cookbooks/apache2/templates/default/mod_auth_openid.rb.erb
2011-06-12 14:15:48 -07:00

13 lines
215 B
Plaintext

#!/usr/bin/env ruby
allowed_openids = Array.new
<% node[:apache][:allowed_openids].each do |id| -%>
allowed_openids << "<%= id %>"
<% end -%>
if allowed_openids.grep(ARGV[0]).length > 0
exit 0
else
exit 1
end