module JekyllAuth::Helpers
Public Instance Methods
authentication_strategy()
click to toggle source
# File lib/jekyll_auth/helpers.rb, line 11 def authentication_strategy if !ENV["GITHUB_TEAM_ID"].to_s.blank? :team elsif !ENV["GITHUB_TEAM_IDS"].to_s.blank? :teams elsif !ENV["GITHUB_ORG_NAME"].to_s.blank? :org end end
whitelisted?()
click to toggle source
# File lib/jekyll_auth/helpers.rb, line 5 def whitelisted? return true if request.path_info == "/logout" !!(JekyllAuth.whitelist && JekyllAuth.whitelist.match(request.path_info)) end