You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time I go to my admin app (https://localhost/admin), I'm redirected to the login page (https://localhost/admin#/login). No problem here.
I log in and I'm redirected to the welcome React-admin page instead of the resources view.
API Platform version(s) affected: 3.2.2
@api-platform/admin: 3.4.4
Description
My context: I have a JWT protected API, and a protected Hydra-admin with a custom
authProvider
and therequireAuth
set to true.The first time I go to my admin app (https://localhost/admin), I'm redirected to the login page (https://localhost/admin#/login). No problem here.
I log in and I'm redirected to the welcome React-admin page instead of the resources view.
How to reproduce
You can clone this repository https://github.com/adguernier/api-platform-auth-provider and follow the
README.md
Possible Solution
It seems the
adminDataProvider
introspect()
method does not check theauthProvider
checkAuth()
method.Additional Context
The first time the login page is render, an error occurred in the console:
The
dataProvider
I've written uses theBearer token
as described in your exampleAn example is worth a thousand words
Capture.video2.2023-11-02.11.32.47.mp4
The text was updated successfully, but these errors were encountered: