-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid response received from Authorization Server. Expected JSON. #36
Comments
Can you share the exact error message? Is there any entry in Flarum or Laravel log file or is it just shown on the page? Any difference when trying again with debug enabled in Are you able to perform a request to your Laravel app from the command line on the Flarum server? like |
Hi, similar problem here.
The exact error message is OP's title. Here is the stack trace if that helps : Stack trace:
The process seems straightforward at first but it is unclear really. Does Passport require an auth scaffolding ? Initially it complained the "login" route didn't exist. I installed laravel/ui and now I see a small window where I can login, but the error appears after I try to login. Enabling debug shows the stack trace in Ignition in said small login window. They are both installed on the same server and can reach each other. |
Do I have to install Flarum on the Passport side too ? So far I only see the user created in Passport, but they don't appear in the Flarum users. How do you handle user-specific permissions or other interactions ? Eg. how do I make a Passport-authenticated user mod or admin, or PM them ? So many questions... I hoped OAuth2 handled these questions. |
Bug Report
Current Behavior
Gets invalid JSON response and throws error
Steps to Reproduce
Expected Behavior
Response is successful and redirects with user authenticated
Screenshots
Not needed to reproduce
Environment
Possible solution(s)
Additional Context
This issue is present on Flarum 1.8.0
The text was updated successfully, but these errors were encountered: