Class TemplatesClient
- Namespace
- Auth0.ManagementApi.Branding
- Assembly
- Auth0.ManagementApi.dll
public class TemplatesClient : ITemplatesClient
- Inheritance
-
TemplatesClient
- Implements
- Inherited Members
- Extension Methods
Methods
DeleteUniversalLoginAsync(RequestOptions?, CancellationToken)
public Task DeleteUniversalLoginAsync(RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Templates.DeleteUniversalLoginAsync();
GetUniversalLoginAsync(RequestOptions?, CancellationToken)
public WithRawResponseTask<GetUniversalLoginTemplateResponseContent> GetUniversalLoginAsync(RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Templates.GetUniversalLoginAsync();
UpdateUniversalLoginAsync(UpdateUniversalLoginTemplateRequestContent, RequestOptions?, CancellationToken)
Update the Universal Login branding template.
When content-type header is set to application/json:
{
"template": "{% assign resolved_dir = dir | default: \"auto\" %}<html lang=\"{{locale}}\" dir=\"{{resolved_dir}}\"><head>{%- auth0:head -%}</head><body class=\"_widget-auto-layout\">{%- auth0:widget -%}</body></html>"
}
When content-type header is set to text/html:
{% assign resolved_dir = dir | default: "auto" %}
<html lang="{{locale}}" dir="{{resolved_dir}}">
<head>
{%- auth0:head -%}
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
</body>
</html>
public Task UpdateUniversalLoginAsync(UpdateUniversalLoginTemplateRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestUpdateUniversalLoginTemplateRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Templates.UpdateUniversalLoginAsync("string");