Skip to content

Conversation

nitzanj
Copy link
Contributor

@nitzanj nitzanj commented Jan 12, 2021

No description provided.

if (oauthToken == null) {
if (apiKey == null) throw new IllegalArgumentException("Must supply api_key");
if (apiSecret == null) throw new IllegalArgumentException("Must supply api_secret");
}

Choose a reason for hiding this comment

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

what if all of them are null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If all are null then this is thrown - `IllegalArgumentException("Must supply api_key"). Same behaviour as before for people not using oauth so it doesn't break anything.

this.secureCdnSubdomain = secureCdnSubdomain;
this.useRootPath = useRootPath;
this.timeout = 0;
this.timeout = timeout;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was that changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a bugfix (will be in the commit message on merge).

@nitzanj nitzanj merged commit 1ce6675 into master Jan 19, 2021
@nitzanj nitzanj deleted the feature/admin-api-oauth-support branch January 19, 2021 15:45
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.

3 participants