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
authProviderand therequireAuthset 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.mdPossible Solution
It seems the
adminDataProviderintrospect()method does not check theauthProvidercheckAuth()method.Additional Context

The first time the login page is render, an error occurred in the console:
The
dataProviderI've written uses theBearer tokenas described in your exampleAn example is worth a thousand words
Capture.video2.2023-11-02.11.32.47.mp4