Skip to content

Fix client options#1

Merged
dandrews merged 2 commits intoomniauth:masterfrom
jduff:fix_client_options
Mar 14, 2019
Merged

Fix client options#1
dandrews merged 2 commits intoomniauth:masterfrom
jduff:fix_client_options

Conversation

@jduff
Copy link
Contributor

@jduff jduff commented Mar 28, 2018

  • Removed the environment variables for setting up the urls, the code that is configuring the gem can do that if they want to.
  • Use the options[:client_options][:site] for iis and aud when validating the token instead of the environment variables
  • Updated readme

If you need any other changes to be able to merge this let me know!


ORG = ENV['OKTA_ORG'] || 'your-org'
DOMAIN = ENV['OKTA_DOMAIN'] || 'okta'
BASE_URL = "https://#{ORG}.#{DOMAIN}.com"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 11 is a bugfix as well, because what if the domain is not a .com TLD?

@amseledka
Copy link

amseledka commented Mar 1, 2019

would be very nice to have this @dandrews

@hectron hectron mentioned this pull request Mar 8, 2019
@dandrews dandrews merged commit 1db5689 into omniauth:master Mar 14, 2019
@dandrews
Copy link
Collaborator

I just merge it now

dandrews pushed a commit that referenced this pull request Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants