This article explains how you to integrate ORY Hydra in your system.
A high-level overview of the interaction between a client, ORY Hydra (Authorization Server) and an API looks as follows:
Most of what is explained here can also be seen as real-life examples in the ory/examples repository!
Please, do not write your own code to interact with OAuth 2.0. Use open source & battle-tested libraries instead. Here are some examples:
- golang/oauth2 *recommended
For a full list of client libraries go here.
The best and easiest way to validate OAuth 2.0 Access Tokens is by performing
OAuth 2.0 Token Introspection. You can do this with the CLI
hydra token introspect <token>.