Skip to main content
Version: Next

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

Implementing the Consent HTML Form#

note

The Consent HTML Form cannot be a Single Page App (Client-side browser application) or a Mobile App! It has to be a server-side application with access to ORY Hydra's Admin Endpoint!

OAuth2 Consent UI Screen

Accepting the Consent Request#

src/routes/consent.ts

Rejecting the Consent Request#

src/routes/consent.ts

Skipping Consent Screen#

src/routes/consent.ts

Complete Endpoint#

src/routes/consent.ts
Last updated on by aeneasr