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