Skip to content

Commit 7808873

Browse files
committed
Update Examples.md
1 parent 4050199 commit 7808873

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

EXAMPLES.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
- [Roles](#roles)
99
- [Backchannel Logout](#backchannel-logout)
1010
- [Blazor Server](#blazor-server)
11+
- [Accessing Auth0.AuthenticationApi features](#accessing-auth0authenticationapi-features)
12+
- [Accessing specific features like CIBA](#accessing-specific-features-like-ciba)
1113

1214
## Login and Logout
1315
Triggering login or logout is done using ASP.NET's `HttpContext`:
@@ -445,9 +447,9 @@ public class LogoutModel : PageModel
445447
}
446448
```
447449

448-
# Accessing Auth0.AuthenticationApi features
450+
## Accessing Auth0.AuthenticationApi features
449451
`Auth0.AuthenticationApi` package is our standalone Authentication package that supports a wide range of
450-
options for Authentication. We can access these features like below :
452+
options for Authentication. For example, you can use it to implement the [client credentials flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow), as shown below :
451453

452454
```csharp
453455
/// Register the dependency in the container as below.
@@ -477,7 +479,7 @@ public async Task LoginWithAuthenticationApi()
477479
}
478480
```
479481

480-
# Accessing specific features like CIBA
482+
## Accessing specific features like CIBA
481483
Although `Auth0.AuthenticationApi` package has a wide range of options for Authentication.
482484
We can access the CIBA feature as below. It aims to make it easy to integrate into an appllication.
483485

@@ -486,7 +488,7 @@ We can access the CIBA feature as below. It aims to make it easy to integrate in
486488
/// Program.cs / Startup.cs
487489
builder.Services.AddAuth0WebAppAuthentication(options =>
488490
{
489-
options.Domain = "domain";
491+
options.Domain = "domain"; // required
490492
options.ClientId = "ClientId"; // required
491493
options.ClientSecret = "clientSecret"; // required
492494
}).WithClientInitiatedBackchannelAuthentication();
@@ -507,7 +509,7 @@ public async Task<IActionResult> InitiateLoginWithCiba(string returnUrl = "/")
507509
LoginHint = new LoginHint()
508510
{
509511
Format = "iss_sub",
510-
Issuer = "https://dx-sdks-testing.us.auth0.com/",
512+
Issuer = "https://your-domain/",
511513
Subject = "userId"
512514
}
513515
});

0 commit comments

Comments
 (0)