Sha256: 264e7cc34509472a6fe4e1f008071418714035d24f87370ce2aa2c62e74aa3a6

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.0.0 lib/jekyll_auth/helpers.rb