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

Add support for OAuth2 to OpenAPI3 importer #2184

Merged

Conversation

sebastianjonasson
Copy link
Contributor

@sebastianjonasson sebastianjonasson commented May 15, 2020

Add support for including OAuth2 settings when importing a workspace from an OpenAPI3 file.

Parses authorizationUrl, accessToken, and scope from OpenAPI specification file. Then adds templates/variables for user credentials (password, username, client_id, client_secret).

I will add tests if you want me to proceed.

Closes #2183

@netlify
Copy link

netlify bot commented May 15, 2020

Deploy preview for insomnia-storybook ready!

Built with commit 944b1b9

https://deploy-preview-2184--insomnia-storybook.netlify.app

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

Hi @sebastianjonasson, thanks for working on this! Apologies for the delay. 😞

I will add tests if you want me to proceed.

Code looks good! I will merge once these tests are in. 🤗

@sebastianjonasson
Copy link
Contributor Author

@develohpanda - Made some updates and added test.

The pre-commit hook generated diffs in these files:

packages/openapi-2-kong/dist/index.js
packages/openapi-2-kong/dist/index.js.map

are the meant to be commited?

@develohpanda
Copy link
Contributor

develohpanda commented Jun 2, 2020

are the meant to be commited?

No they shouldn't be. Your branch is out of date with the develop, so if you merge with develop that should fix up the .gitignore file and also the linting failures (run npm run lint:fix) CI is reporting.

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

Looks good now with the tests 👍

@develohpanda develohpanda changed the title Feat/importer openapi3 oauth2 Add support for OAuth2 to OpenAPI3 importer Jun 6, 2020
@develohpanda develohpanda merged commit 0356b8a into Kong:develop Jun 6, 2020
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.

[FEATURE REQUEST] - Include OAuth2 settings when importing from an openapi3 file.
2 participants