Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacalvar <jacalvar@microsoft.com>2022-08-10 15:49:27 +0300
committerjacalvar <jacalvar@microsoft.com>2022-08-10 15:49:27 +0300
commit35a4e01ed692dc11f6af6cdc771b1c4ba89bfa11 (patch)
treef1f3f47a0c86b497431f0990d1433fa0ca0e8b27
parentf8ca3f7fb49e697a0991c9b01c4143fbc76b0592 (diff)
-rw-r--r--src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt2
-rw-r--r--src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt b/src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt
index dfc2907d0e..3ac471b5b2 100644
--- a/src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt
+++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt
@@ -8,7 +8,7 @@ Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOpt
Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Interaction.init -> void
Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.InteractiveRequestOptions() -> void
Microsoft.AspNetCore.Components.WebAssembly.Authentication.NavigationManagerExtensions
-~Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenNotAvailableException.Redirect(System.Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> request) -> void
+~Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenNotAvailableException.Redirect(System.Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> configureInteractionOptions) -> void
~Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult.AccessTokenResult(Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResultStatus status, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessToken token, string interactiveRequestUrl, Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions interactiveRequest) -> void
~Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult.InteractionOptions.get -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions
~Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult.InteractiveRequestUrl.get -> string
diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs
index d6042bf86b..32cc594a8c 100644
--- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs
+++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs
@@ -51,10 +51,11 @@ public class AccessTokenNotAvailableException : Exception
/// Navigates to <see cref="AccessTokenResult.InteractiveRequestUrl"/> using the given <see cref="AccessTokenResult.InteractionOptions"/>
/// to allow refreshing the access token.
/// </summary>
- public void Redirect(Action<InteractiveRequestOptions> request)
+ /// <param name="configureInteractionOptions">A callback to further configure the initial set of options to be passed during the interactive token adquisition flow.</param>
+ public void Redirect(Action<InteractiveRequestOptions> configureInteractionOptions)
{
- ArgumentNullException.ThrowIfNull(request);
- request(_tokenResult.InteractionOptions);
+ ArgumentNullException.ThrowIfNull(configureInteractionOptions);
+ configureInteractionOptions(_tokenResult.InteractionOptions);
_navigation.NavigateToLogin(_tokenResult.InteractiveRequestUrl, _tokenResult.InteractionOptions);
}
}