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

Fix @Authorized in subscriptions #578

Merged
merged 3 commits into from
Mar 14, 2020
Merged

Conversation

MichalLytek
Copy link
Owner

This PR adds proper authChecker call for subscriptions.
Now auth is also checked during subscribe phase to reject unauthorized clients, not only when pubsub emit new event in selected topic (when subscription method body is called).

Closes #175 🔒

@MichalLytek MichalLytek added the Bug 🐛 Something isn't working label Mar 14, 2020
@MichalLytek MichalLytek added this to the 1.0.0 release milestone Mar 14, 2020
@MichalLytek MichalLytek self-assigned this Mar 14, 2020
@codecov
Copy link

codecov bot commented Mar 14, 2020

Codecov Report

Merging #578 into master will decrease coverage by 0.04%.
The diff coverage is 92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #578      +/-   ##
==========================================
- Coverage   95.01%   94.97%   -0.05%     
==========================================
  Files          77       77              
  Lines        1363     1372       +9     
  Branches      264      265       +1     
==========================================
+ Hits         1295     1303       +8     
- Misses         65       66       +1     
  Partials        3        3
Impacted Files Coverage Δ
src/resolvers/create.ts 98.07% <88.88%> (-1.93%) ⬇️
src/schema/schema-generator.ts 96.74% <93.75%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc4a531...ffe70f9. Read the comment docs.

@MichalLytek MichalLytek merged commit a60886a into master Mar 14, 2020
@MichalLytek MichalLytek deleted the authorized-subscriptions branch March 14, 2020 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@Authorized in subscriptions
1 participant