Skip to main content

Implementing the Consent Endpoint & UI

note

Please read the Consent Flow Documentation first!

In this document, you will learn how to implement the Consent Endpoint using our Ory Hydra SDKs. The goal for this document is to have document this for multiple programming languages. If you are an expert in one of these languages, your help is highly appreciated in improving these docs!

Code shown here is taken out of the Ory Hydra Login & Consent Node Reference application which you can find on GitHub.

ory/hydra-login-consent-node - GitHub

note

The Consent HTML Form can't be only a Single Page App (Client-side browser application) or a Mobile App! There has to be a server-side component with access to Ory Hydra's Admin Endpoint!

OAuth2 Consent UI Screen

src/routes/consent.ts

src/routes/consent.ts

src/routes/consent.ts

Complete Endpoint

src/routes/consent.ts