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

Implement auth error types for GraphQL #2026

Closed
ldclakmal opened this issue Oct 8, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#462
Closed

Implement auth error types for GraphQL #2026

ldclakmal opened this issue Oct 8, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#462
Assignees
Labels
Area/Security Issues related to stdlib security module/graphql Issues related to Ballerina GraphQL module Points/0.5 Team/PCM Protocol connector packages related issues Type/NewFeature

Comments

@ldclakmal
Copy link
Member

Description:
This is to track the implementation of auth error types for GraphQL which will be used in context initialization phase and can be used in resolver phase as well.

Here is the summary of HTTP status codes.

Error type Status code
Resolver level error 400
Context init level errors 500
Context init level custom errors 400

So, with the GraphQL proposal of security story [1] we will be adding 2 new error types as graphql:AuthnError and graphql:AuthzError and those will return the 400 status code responses.

[1] #1771

@ldclakmal ldclakmal added Type/NewFeature module/graphql Issues related to Ballerina GraphQL module Team/PCM Protocol connector packages related issues Area/Security Issues related to stdlib security labels Oct 8, 2021
@ldclakmal ldclakmal self-assigned this Oct 26, 2021
@ldclakmal ldclakmal added this to the Swan Lake Beta4 milestone Oct 26, 2021
@ThisaruGuruge ThisaruGuruge reopened this Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Security Issues related to stdlib security module/graphql Issues related to Ballerina GraphQL module Points/0.5 Team/PCM Protocol connector packages related issues Type/NewFeature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants