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

feat(authentication-jwt): add bear auth spec enhancer #5493

Merged
merged 1 commit into from
May 20, 2020
Merged

Conversation

jannyHou
Copy link
Contributor

@jannyHou jannyHou commented May 19, 2020

Implements #4386
Add bear auth spec enhancer, refactor the component to apply enhancer automatically.

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@jannyHou jannyHou changed the title feat(authentication-jwt): add jwt spec enhancer feat(authentication-jwt): add bear auth spec enhancer May 19, 2020
@jannyHou jannyHou merged commit 7ba645a into master May 20, 2020
@jannyHou jannyHou deleted the jwt-enhancer branch May 20, 2020 17:21
];

export const SECURITY_SCHEME_SPEC: SecuritySchemeObjects = {
bearerAuth: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this not be jwt: {

Excuse me if I'm going mad! 😋

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, my bad memory! I remember there was one PR to rename it, and I thought the rename is from jwt ---> bearerAuth, so wrote it as bearerAuth....

Then I find #4461, it's actually the reverse, from bearerAuth ---> jwt
😲 😲

Will correct it in the next refactor PR, coming soon.

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