I'm currently implementing a new OAuth 2 server (planning to use Ory Hydra) and this will be the authorisation server for both our developers portal where developers create an app they're given client_id
and client_secret
and use those for the token exchange but also for our mobile app where users fill their credentials (username and password).
The login
, logout
, forgot password
, etc will live in a different server.
Question is, is there a way to prevent having the consent screen as part of the Authorisation Code grant + PKCE? Via the mobile app users are authenticating to have access to their own information from a different service and my understanding of the Authorisation Code grant is that it's meant to be used by third-party apps to gain access to the user information.
I know there are other grant types but it seems that the Authorisation Code + PKCE is the recommended grant for native mobile apps according to this and this
Thanks!