Hey dex team,
We're deploying Dex within our microservices infrastructure and thanks again for releasing this great service!
For a simple web app, the implementation is straightforward and well documented using the OIDC "authorization code flow".
On the other hand, I'm a bit confused on how a REST API can authenticate a user. I'm thinking about the following implementations:
- the REST API could require an access_token; (as the dex-worker schema API).
But how to validate it? I've seen that the token introspection endpoint could validate an access token but it looks like it is not available with DEX. - the REST API could require an authorization code (fetched by a web app after the user logged in); and then request an id token/access token to DEX using the token endpoint.
What would be the best practise?
Best regards,
Samuel