I have a mobile app which is trying to authenticate before accessing APIs from a symfony backend.
Here is how it is done : the app use a route like oauth/v2/token to which it gives the useame, password and other stuffs like client_id and client_secret. And the oauth retus a auth_token, refresh_token and other stuff.
But here is the issue. Whenever I try to access to an API in the mobile (i'm testing via browser by using the command ionic serve) it redirects me to the web authentication page and my API retus in the console html code for that authentication page.
Does someone might know where I get it wrong. For info whenever I make an api call I inject the token I get from authentifying using oauth.
Do you know a more efficient way to handle this part using a symfony and angular js/ionic ?
