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

OpenAPI 3 Cookie Authentication Support #650

Merged
merged 2 commits into from
Apr 17, 2020
Merged

OpenAPI 3 Cookie Authentication Support #650

merged 2 commits into from
Apr 17, 2020

Conversation

rafaelkallis
Copy link
Contributor

@rafaelkallis rafaelkallis commented Apr 2, 2020

Issue #649

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

Issue Number: #649

What is the new behavior?

// main.ts
const options = new DocumentBuilder()
    .setTitle('Cats example')
    .setDescription('The cats API description')
    .setVersion('1.0')
    .addTag('cats')
    .addCookieAuth() // <- adds cookie authentication
    .build();

// cats.controller.ts
@ApiCookieAuth() // <- adds cookie authentication
@Controller('cats')
export class CatsController {}

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@rafaelkallis rafaelkallis changed the title Cookie Authentication Support OpenAPI 3 Cookie Authentication Support Apr 2, 2020
@rafaelkallis rafaelkallis marked this pull request as ready for review April 2, 2020 14:28
@kamilmysliwiec
Copy link
Member

Thanks for your contribution!

@kamilmysliwiec kamilmysliwiec merged commit 05e1651 into nestjs:master Apr 17, 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.

2 participants