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

Registered GraphQL Schema ignores authenticators #22

Closed
bdrelling opened this issue Mar 11, 2023 · 3 comments
Closed

Registered GraphQL Schema ignores authenticators #22

bdrelling opened this issue Mar 11, 2023 · 3 comments

Comments

@bdrelling
Copy link

bdrelling commented Mar 11, 2023

The following code (using a simple UserAuthenticator example from Vapor's Authentication Docs) does not respect the authenticator:

routes.grouped(UserAuthenticator()).register(graphQLSchema: schema, withResolver: resolver)

I believe the same would hold true for any sort of Vapor middleware, but have only tested the authenticator.

@bdrelling
Copy link
Author

Nevermind, this was just the result of configuring the GuardMiddleware incorrectly. Closing this issue, sorry!

@Fa1zer
Copy link

Fa1zer commented Oct 15, 2023

Hi! I have same problem. Can you please tell me exactly what your mistake was?

@bdrelling
Copy link
Author

Oof, I don't remember at all, sorry! I think I just needed to re-read the documentation in this case a bit more closely, otherwise I would have included more information on the Issue.

Good luck! Sorry I don't have more info.

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

No branches or pull requests

2 participants