5 instantiations of InteractiveRequestOptions
Microsoft.AspNetCore.Components.WebAssembly.Authentication (5)
Models\InteractiveRequestOptions.cs (1)
101return new InteractiveRequestOptions
NavigationManagerExtensions.cs (2)
39HistoryEntryState = new InteractiveRequestOptions 78new InteractiveRequestOptions
Services\RemoteAuthenticationService.cs (2)
143result.Status == AccessTokenResultStatus.RequiresRedirect ? new InteractiveRequestOptions 165result.Status == AccessTokenResultStatus.RequiresRedirect ? new InteractiveRequestOptions
69 references to InteractiveRequestOptions
Microsoft.AspNetCore.Components.WebAssembly.Authentication (69)
_generated\10\InteractiveRequestOptionsSerializerContext.GetJsonTypeInfo.g.cs (2)
26if (type == typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions)) 30if (type == typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord))
_generated\2\InteractiveRequestOptionsSerializerContext.InteractiveRequestOptions.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions>? _InteractiveRequestOptions; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> InteractiveRequestOptions 22get => _InteractiveRequestOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> Create_InteractiveRequestOptions(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> jsonTypeInfo)) 29global::System.Text.Json.Serialization.JsonConverter converter = ExpandConverter(typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions), new global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter(), options); 30jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions> (options, converter);
_generated\3\InteractiveRequestOptionsSerializerContext.OptionsRecord.g.cs (36)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>? _OptionsRecord; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord> OptionsRecord 22get => _OptionsRecord ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord> Create_OptionsRecord(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord> 31ObjectCreator = () => new global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord(), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord), 60Getter = static obj => ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)obj).ReturnUrl, 61Setter = static (obj, value) => __set_OptionsRecord_ReturnUrl(ref global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(obj), value!), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetProperty("ReturnUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord), 82Getter = static obj => ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)obj).Scopes, 83Setter = static (obj, value) => __set_OptionsRecord_Scopes(ref global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(obj), value!), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord), 104Getter = static obj => ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)obj).Interaction, 105Setter = static (obj, value) => __set_OptionsRecord_Interaction(ref global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(obj), value!), 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetProperty("Interaction", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractionType), global::System.Array.Empty<global::System.Type>(), null), 122DeclaringType = typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord), 124Getter = static obj => ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)obj).AdditionalRequestParameters, 125Setter = static (obj, value) => __set_OptionsRecord_AdditionalRequestParameters(ref global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord>(obj), value!), 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetProperty("AdditionalRequestParameters", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 142private void OptionsRecordSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord value) 146writer.WriteString(PropName_returnUrl, ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)value).ReturnUrl); 148IEnumerableStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)value).Scopes); 150global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)value).Interaction, InteractionType); 152global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord)value).AdditionalRequestParameters, DictionaryStringObject); 158private static extern void __set_OptionsRecord_ReturnUrl(ref global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord obj, string value); 160private static extern void __set_OptionsRecord_Scopes(ref global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord obj, global::System.Collections.Generic.IEnumerable<string> value); 162private static extern void __set_OptionsRecord_Interaction(ref global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord obj, global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractionType value); 164private static extern void __set_OptionsRecord_AdditionalRequestParameters(ref global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord obj, global::System.Collections.Generic.Dictionary<string, object> value);
Models\InteractiveRequestOptions.cs (6)
91internal static InteractiveRequestOptions FromState(string state) => JsonSerializer.Deserialize( 95internal class Converter : JsonConverter<InteractiveRequestOptions> 97public override InteractiveRequestOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 110public override void Write(Utf8JsonWriter writer, InteractiveRequestOptions value, JsonSerializerOptions options) 148[JsonSerializable(typeof(InteractiveRequestOptions))] 149[JsonSerializable(typeof(InteractiveRequestOptions.Converter.OptionsRecord))]
Models\RemoteAuthenticationContext.cs (1)
28public InteractiveRequestOptions? InteractiveRequest { get; set; }
NavigationManagerExtensions.cs (2)
56/// <param name="request">The <see cref="InteractiveRequestOptions"/> containing the authorization details.</param> 57public static void NavigateToLogin(this NavigationManager manager, [StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string loginPath, InteractiveRequestOptions request)
RemoteAuthenticatorViewCore.cs (5)
21private InteractiveRequestOptions? _cachedRequest; 210var interactiveRequest = GetCachedNavigationState(); 294var interactiveRequest = GetCachedNavigationState(); 382private InteractiveRequestOptions? GetCachedNavigationState() 394_cachedRequest = InteractiveRequestOptions.FromState(Navigation.HistoryEntryState);
Services\AccessTokenNotAvailableException.cs (1)
53public void Redirect(Action<InteractiveRequestOptions> configureInteractionOptions)
Services\AccessTokenResult.cs (6)
20/// <param name="interactiveRequestUrl">The redirect uri to go to for provisioning the token with <see cref="NavigationManagerExtensions.NavigateToLogin(NavigationManager, string, InteractiveRequestOptions)"/>.</param> 21/// <param name="interactiveRequest">The <see cref="InteractiveRequestOptions"/> containing the parameters for the interactive authentication.</param> 22public AccessTokenResult(AccessTokenResultStatus status, AccessToken token, [StringSyntax(StringSyntaxAttribute.Uri)] string? interactiveRequestUrl, InteractiveRequestOptions? interactiveRequest) 36/// Gets the URL to call <see cref="NavigationManagerExtensions.NavigateToLogin(NavigationManager, string, InteractiveRequestOptions)"/> if <see cref="Status"/> is 42/// Gets the <see cref="InteractiveRequestOptions"/> to use if <see cref="Status"/> is <see cref="AccessTokenResultStatus.RequiresRedirect"/>. 44public InteractiveRequestOptions? InteractionOptions { get; }