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: remove auth section #2022

Merged
merged 18 commits into from
May 30, 2022
Merged

Conversation

anastasiia-developer
Copy link
Contributor

@anastasiia-developer anastasiia-developer commented May 24, 2022

What/Why/How?

feat: remove auth section

Reference

Testing

Screenshots (optional)

Screenshot 2022-05-27 at 18 43 36
Screenshot 2022-05-27 at 18 44 49

Security unexpanded

Screenshot 2022-05-27 at 18 40 10

Security expanded

Screenshot 2022-05-27 at 18 40 20

See more

Screenshot 2022-05-27 at 18 42 26

See less

Screenshot 2022-05-27 at 18 42 38

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@anastasiia-developer anastasiia-developer requested a review from a team as a code owner May 24, 2022 17:18
@anastasiia-developer anastasiia-developer requested review from AlexVarchuk, zalesky and Oprysk and removed request for a team May 24, 2022 17:18
@anastasiia-developer anastasiia-developer self-assigned this May 25, 2022
Copy link
Collaborator

@AlexVarchuk AlexVarchuk left a comment

Choose a reason for hiding this comment

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

Should we deprecate noAutoAuth? What do you think? @anastasiia-developer @RomanHotsiy @Oprysk

{ openapi: '3.0', info: { title: 'test', version: '0' }, paths: {} },
undefined,
options,
const spec: OpenAPISpec = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe better move spec to fixtures?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it cover all security types, which we support?

  oauth2: 'OAuth2',
  apiKey: 'API Key',
  http: 'HTTP',
  openIdConnect: 'OpenID Connect',

Copy link
Contributor Author

@anastasiia-developer anastasiia-developer May 26, 2022

Choose a reason for hiding this comment

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

Maybe better move spec to fixtures?

Done 😄

Copy link
Collaborator

@AlexVarchuk AlexVarchuk left a comment

Choose a reason for hiding this comment

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

LGTM! Good work 🎉

@zalesky
Copy link
Contributor

zalesky commented May 30, 2022

Are these screenshots updated? I see too much vertical gap between petstore_auth api_key Gitlub_Oauth2AuthorizationCodeWithPKCE (Screenshot1)

RequiredScopes?: JSX.Element;
}

export class OAuthFlow extends React.PureComponent<OAuthFlowProps> {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be great to use functional component here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@Oprysk Oprysk May 30, 2022

Choose a reason for hiding this comment

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

@anastasiia-developer Previously it was a PureComponent after refactoring it to the function component we need to keep the performance in the rendering perspective. So we might use React memo HOC here, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we might
I'm going to add that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@anastasiia-developer anastasiia-developer merged commit a863302 into master May 30, 2022
@anastasiia-developer anastasiia-developer deleted the feat/remove_auth_section branch May 30, 2022 15:55
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.

4 participants