Class: OmniauthOpenidFederation::Federation::EntityStatementFetcher::FileFetcher
- Inherits:
-
Base
- Object
- Base
- OmniauthOpenidFederation::Federation::EntityStatementFetcher::FileFetcher
- Defined in:
- lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb
Overview
Fetches entity statement from a local file
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
-
#initialize(file_path, allowed_dirs: nil) ⇒ FileFetcher
constructor
Initialize file fetcher.
Methods inherited from Base
Constructor Details
#initialize(file_path, allowed_dirs: nil) ⇒ FileFetcher
Initialize file fetcher
113 114 115 116 |
# File 'lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb', line 113 def initialize(file_path, allowed_dirs: nil) @file_path = file_path @allowed_dirs = allowed_dirs || ((defined?(Rails) && Rails.root) ? [Rails.root.join("config").to_s] : nil) end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
107 108 109 |
# File 'lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb', line 107 def file_path @file_path end |