Comments (7)
Does that answer your question?
from laravel-graphql-playground.
You configured a Laravel Middleware for it and tell graph-playground to use it via
laravel-graphql-playground/config/graphql-playground.php
Lines 9 to 12 in dd014d8
from laravel-graphql-playground.
This is not the solution that I need, this config will basically prevent me from viewing the playground.
I am using Laravel passport for JWT authentication.
Inside my schema.graphql i have the following query:
categories: [Category] @all @middleware(checks: ["auth:api"])
I want to get access to this query in the same that we used to do for the restful APIS by passing the JWT token (probably from the playground for testing) .
The query in my playground to get the categories looks like:
query {
categories {
name
}
}
When I press the run button I get the following error:
"errors": [
{
"debugMessage": "Route [login] not defined.",
"message": "Internal server error",
"category": "internal",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"categories"
],
I want to implement the authentication using Laravel Lighthouse and playground.
from laravel-graphql-playground.
@spawnia I will give it a try.
I have created one issue on the lighthouse repository. I am getting error trying to implement the auth:api middleware:
nuwave/lighthouse#579
from laravel-graphql-playground.
Alright. It seems that this issue does not really concern this repo though, since it seems to be a more general problem with authentication. This is really only a thin integration layer for GraphQL Playground.
from laravel-graphql-playground.
@sadhakbj maybe that answer your question !!
from laravel-graphql-playground.
@josevalero yes the issue was solved long back
from laravel-graphql-playground.
Related Issues (20)
- Add setting for weboscket to subscription HOT 3
- Add a documentation to explain how to add default request headers HOT 2
- Laravel 5.8 Support - Problem with Route HOT 3
- How to enable the multi env side panel? HOT 1
- Include table name on where directive HOT 1
- How to use with Sanctum? HOT 2
- JavaScript Error when clicking "copy curl" HOT 2
- Suggestion: consider a debug tab HOT 2
- Publish package under different tag name HOT 1
- is there any file picker or way to upload files? HOT 2
- Not support for laravel 8 HOT 3
- Method signature issues in GraphQLPlaygroundServiceProvider#loadRoutesFrom HOT 2
- Add functionality to provide the subscription endpoint. HOT 3
- Update headers HOT 3
- Exclude mutation from playground HOT 1
- Laravel GraphQl getting Could not connect to websocket endpoint error HOT 2
- Announcement "Retiring Graphql Playground" HOT 6
- playground over https
- Couldn`t open schema and docs tabs on production server (infinitely loading content) HOT 6
- laravel 10 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-graphql-playground.