You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrating [Auth0.NET](https://github.com/auth0/auth0.net) into your project whilst attempting to follow idiomatic .NET Core conventions can be cumbersome and involve a sizable amount of boilerplate shared between projects.
9
+
Integrating [Auth0.NET](https://github.com/auth0/auth0.net) into your project whilst following idiomatic .NET conventions can be cumbersome and involve a sizable amount of boilerplate shared between projects.
10
10
11
11
This library hopes to solve that problem, featuring:
12
12
@@ -18,7 +18,7 @@ This library hopes to solve that problem, featuring:
18
18
19
19
:white_check_mark:`IHttpClientBuilder` extensions, providing handlers to automatically append access tokens to outgoing requests.
20
20
21
-
This library supports .NET 6 & .NET 7, and is suitable for use in ASP.NET Core and standalone .NET Generic Host applications.
21
+
This library supports .NET 6+, and is suitable for use in ASP.NET Core and standalone .NET Generic Host applications.
/// Adds a <see cref="AuthenticationApiClient" /> integrated with <see cref="IHttpClientBuilder" /> as well as the <see cref="IAuth0TokenCache" /> and related services to the <see cref="IServiceCollection" />.
63
+
/// </summary>
64
+
/// <remarks>
65
+
/// This configuration is required to use the <see cref="IHttpClientBuilder"/> and token caching integration.
/// <param name="config">A delegate that is used to configure the instance of <see cref="Auth0Configuration" />, with the ability to request services from the <see cref="IServiceProvider"/></param>
69
+
/// <returns>An <see cref="IHttpClientBuilder" /> that can be used to configure the <see cref="HttpClientAuthenticationConnection"/>.</returns>
@@ -74,12 +98,14 @@ public static IHttpClientBuilder AddAuth0AuthenticationClient(this IServiceColle
74
98
})
75
99
.SetHandlerLifetime(Timeout.InfiniteTimeSpan);
76
100
}
101
+
102
+
77
103
78
104
/// <summary>
79
105
/// Adds a <see cref="ManagementApiClient" /> integrated with <see cref="IHttpClientBuilder" /> to the <see cref="IServiceCollection" />.
80
106
/// </summary>
81
107
/// <remarks>
82
-
/// The domain used to construct the Management connection is the same as set in <see cref="AddAuth0AuthenticationClient"/>.
108
+
/// The domain used to construct the Management connection is the same as set in <see cref="AddAuth0AuthenticationClient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{Auth0Net.DependencyInjection.Cache.Auth0Configuration})"/>.
/// <returns>An <see cref="IHttpClientBuilder" /> that can be used to configure the <see cref="HttpClientManagementConnection"/>.</returns>
@@ -118,10 +144,10 @@ public static IHttpClientBuilder AddAccessToken(this IHttpClientBuilder builder,
118
144
/// Adds a <see cref="DelegatingHandler"/> to the <see cref="IHttpClientBuilder"/> that will automatically add a Auth0 Management Access Token token to the Authorization header.
119
145
/// </summary>
120
146
/// <remarks>
121
-
/// The domain used to resolve the token is the same as set in <see cref="AddAuth0AuthenticationClient"/>.
147
+
/// The domain used to resolve the token is the same as set in <see cref="AddAuth0AuthenticationClient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{Auth0Net.DependencyInjection.Cache.Auth0Configuration})"/>, unless overriden.
122
148
/// </remarks>
123
149
/// <param name="builder">The <see cref="IHttpClientBuilder"/> you wish to configure.</param>
124
-
/// <param name="config">Additional configuration for the management client.</param>
150
+
/// <param name="config">Additional configuration for the management client for custom domain scenarios.</param>
125
151
/// <returns>An <see cref="IHttpClientBuilder" /> that can be used to configure the <see cref="HttpClient"/>.</returns>
0 commit comments