Sha256: 6c10b185dc07aca07cf91eae7bae04d4025d1f180bcc96ad9fe21a671557560f

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 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_ID'].to_s.blank?
        :org
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-auth-1.0.3 lib/jekyll_auth/helpers.rb
jekyll-auth-1.0.2 lib/jekyll_auth/helpers.rb
jekyll-auth-1.0.1 lib/jekyll_auth/helpers.rb
jekyll-auth-1.0.0 lib/jekyll_auth/helpers.rb