Sha256: c1951673ef96818a7311df11d4e20b5ef349a9323f5a127ad54d89925154fda1

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

class JekyllAuth
  module Helpers
    def whitelisted?
      return true if request.path_info == "/logout"
      !!(JekyllAuth.whitelist && JekyllAuth.whitelist.match(request.path_info))
    end

    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-auth-2.1.0 lib/jekyll_auth/helpers.rb