Sha256: 7a1200d664662c92473d10a9dd7872f444be9033752f000199ca0e261a0278c6
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true 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.1 | lib/jekyll_auth/helpers.rb |