TemplatesOAuth module

OAuth templates

Default templates the OAuth module renders, the controller that renders each one and what it receives. A file at the same path in your site repository replaces the platform's.

View cdna-admin screens you can override in your site repository.

Admin view

o-auth/backend/clients/add.html Clients\Add

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$client Client Single (empty) Client record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/o-auth/backend/clients/add.html in your site repository.

o-auth/backend/clients/edit.html Clients\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$client Client Retrieved Client record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/o-auth/backend/clients/edit.html in your site repository.

o-auth/backend/clients/manage.html Clients\Manage

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$clients Collection<Client> Collection of Clients

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/o-auth/backend/clients/manage.html in your site repository.