Incompatible with dotenv
evdevdev opened this issue · 4 comments
evdevdev commented
I've noticed a funny issue, which is that the way env vars are used to set constants is incompatible with using dotenv for setting environmental paths.
My hunch is that this has something to do with the way bundler follows requires.
I think the fastest fix would be to eliminate these lines:
ORG = ENV['OKTA_ORG'] || 'your-org'
DOMAIN = ENV['OKTA_DOMAIN'] || 'okta'
BASE_URL = "https://#{ORG}.#{DOMAIN}.com"
DEFAULT_SCOPE = %[openid profile email].freeze
And instead reference ENV
wherever the constants were called.
Thoughts?
wkirschbaum commented
It is incompatible with config files too, there is a PR out: #1. It does not seem like there is any movement on this gem, so maybe add it to your boot.rb file if you are using rails:
# config/boot.rb
ENV['OKTA_ORG'] ||= 'exampleorg'
amseledka commented
hey guys, any progress on that one?