Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_id is not required if policy_id passed, unit-tests added #2115

Merged
merged 2 commits into from
Feb 13, 2019

Conversation

dencoded
Copy link
Contributor

added a couple of changes for https://github.com/TykTechnologies/product/issues/19

When we create oauth client - one of api_id or policy_id are expected in payload (but not both).
If policy_id is provided we pick needed API ID from policy's ACL.

Also, I've extended unit-test coverage a little bit.

@dencoded dencoded requested a review from buger February 13, 2019 17:26
@buger buger merged commit 6b55353 into master Feb 13, 2019
@buger buger deleted the create-oauth-app-fix branch February 13, 2019 18:38
buger pushed a commit that referenced this pull request Feb 19, 2019
added a couple of changes for TykTechnologies/product#19

When we create oauth client - one of `api_id` or `policy_id` are expected in payload (but not both).
If `policy_id` is provided we pick needed API ID from policy's ACL.

Also, I've extended unit-test coverage a little bit.
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.

None yet

2 participants