Sha256: d0251e8287dc4967e2b30e8c5b02081def965ee2ccab3e7f61beb50a27fee1e3

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

Cogitate.configure do |config|
  <% if defined?(Figaro) %>
  config.tokenizer_password = Figaro.env.cogitate_services_tokenizer_public_password!
  config.remote_server_base_url = Figaro.env.cogitate_services_remote_server_base_url!
  config.tokenizer_encryption_type = Figaro.env.cogitate_services_tokenizer_encryption_type!
  config.tokenizer_issuer_claim = Figaro.env.cogitate_services_tokenizer_issuer_claim!
  config.after_authentication_callback_url = Figaro.env.cogitate_services_after_authentication_callback_url!
  <% else %>
  # The public key for the RSA key
  config.tokenizer_password = 'You need to provide this'
  config.tokenizer_encryption_type = 'RS256'
  config.tokenizer_issuer_claim = 'CHANGE THIS: Cogitate Client'
  # Change this
  config.remote_server_base_url = "http://localhost:3001"
  config.after_authentication_callback_url = "http://localhost:3000/authenticate/from/cogitate"
  <% end %>
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cogitate-0.0.2 lib/cogitate/generators/templates/cogitate_initializer.rb.erb