Only allow documented token types for GraphQL authentication
Currently, some token types besides those documented in [the Token authentication section of the GraphQL docs][1] can be used to authenticate a user for GraphQL. This MR ensures that only the documented token types are usable, once the associated feature flag is enabled. [1]: https://docs.gitlab.com/ee/api/graphql/#token-authentication Changelog: fixed
显示
- app/controllers/graphql_controller.rb 19 个添加, 1 个删除app/controllers/graphql_controller.rb
- config/feature_flags/gitlab_com_derisk/graphql_minimal_auth_methods.yml 9 个添加, 0 个删除..._flags/gitlab_com_derisk/graphql_minimal_auth_methods.yml
- spec/requests/api/graphql_spec.rb 209 个添加, 0 个删除spec/requests/api/graphql_spec.rb
想要评论请 注册 或 登录