Build a custom authorize API endpoint (e.g. POST /o/authorize/consent/) that the frontend consent screen calls. This endpoint uses DOT's OAuthorization.create_authorization_response() t generate the authorization code and validation. => Rationale is since the UI is in the frontend and not a Django template we don't use the default DOT AuthorizationView