Version: v1.4
Consuming OAuth 2.0
This article explains how you to integrate ORY Hydra in your system.
#
OverviewA 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!
#
Interacting with OAuth 2.0Please, do not write your own code to interact with OAuth 2.0. Use open source & battle-tested libraries instead. Here are some examples:
- NodeJS
- Golang
- golang/oauth2 *recommended
- PHP
- Java
For a full list of client libraries go here.
#
Validating OAuth 2.0 Access TokensThe 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>
.