Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Feature/domain agnosticism #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Feature/domain agnosticism #1

wants to merge 4 commits into from

Conversation

odgrim
Copy link

@odgrim odgrim commented Nov 4, 2014

Some domains are vanity urls and hardcoding the EGNYTE_DOMAIN as a global precludes them from working. I added a small parse to see if we pass in a full url or just a subdomain meant to be prepended to .egnyte.com.


@client = OAuth2::Client.new(opts[:key], nil, {
:site => "https://#{@domain}.#{EGNYTE_DOMAIN}",
:site => "https://#{@domain}",
Copy link

Choose a reason for hiding this comment

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

This url should not be https:// . It should be configurable so that we can test against local dev box who is simple http://

Copy link
Author

Choose a reason for hiding this comment

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

Let's get these in another pull request! They're extremely valid and should be addressed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant