apache / apache/grails-core

Feature request: Authentication support for integration test using GraphQLSpec trait

Open
#14,504 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-graphql
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Using Spring Security together with GORM GraphQL we want to be able to add authentication headers in our integration tests to validate our app security, data integrity and tenancy that has been setup with GraphQL interceptors and Spring Security configuration.

This can be done by attaching GET parameter /graphql?access_token=XXX or allowing developer to add HTTP headers to RxHttpClient.

Contributor guide

Open the contributing guide

Research direction

Start by locating the GraphQLSpec trait and RxHttpClient integration-test support mentioned in the issue, then reproduce a test using Spring Security and GraphQL interceptors. Done means an integration test can provide authentication headers or an access token and validate the secured GraphQL behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, groovy, spring
Domain
api, authentication, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.