Skip to content

Instantly share code, notes, and snippets.

@Pepan
Created October 18, 2017 10:01
Show Gist options
  • Save Pepan/528645960a516fe8e0d855ffb3b1a74b to your computer and use it in GitHub Desktop.
Save Pepan/528645960a516fe8e0d855ffb3b1a74b to your computer and use it in GitHub Desktop.
conf = YAML.load_file('config/mitek.yml')
Bikelink::Application.config.mitek = OpenStruct.new(conf[Rails.env])
development: &development
token_url: 'https://identity.us.sandbox.mitekcloud.com/connect/token'
data_url: 'https://globalidentity.us.sandbox.mitekcloud.com/api/Verify/v2/Dossier'
user: 'xxxx.sandbox.test'
password: 'xxxxxxx'
test:
<<: *development
production:
token_url: 'https://xxxxx.mitekcloud.com/....'
data_url: 'https://xxxxx.mitekcloud.com/....'
user: 'xxxxxxxx'
password: 'xxxxxxxxxxx'
@Pepan
Copy link
Author

Pepan commented Oct 18, 2017

config/initializers/mitek.rb
config/mitek.yml

Bikelink::Application.config.mitek.user / password / token_url / data_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment