29 references to GetParameter
Aspire.Dashboard (2)
Authentication\AspirePolicyEvaluator.cs (2)
58else if (result.Properties?.GetParameter<bool>(SuppressChallengeKey) ?? false) 109if (authenticationResult.Failure != null && (authenticationResult.Properties?.GetParameter<bool>(SuppressChallengeKey) ?? false))
Microsoft.AspNetCore.Authentication.Core.Test (9)
AuthenticationPropertiesTests.cs (9)
114Assert.Null(props.GetParameter<string>("foo")); 118Assert.Equal("foo bar", props.GetParameter<string>("foo")); 123Assert.Null(props.GetParameter<string>("foo")); 132Assert.Null(props.GetParameter<int?>("foo")); 136Assert.Equal(123, props.GetParameter<int?>("foo")); 141Assert.Null(props.GetParameter<int?>("foo")); 150Assert.Null(props.GetParameter<int?>("foo")); 155Assert.Equal(new string[] { "a", "b", "c" }, props.GetParameter<ICollection<string>>("foo")); 160Assert.Null(props.GetParameter<ICollection<string>>("foo"));
Microsoft.AspNetCore.Authentication.Google (6)
GoogleChallengeProperties.cs (5)
65get => GetParameter<string>(AccessTypeKey); 74get => GetParameter<string>(ApprovalPromptKey); 83get => GetParameter<bool?>(IncludeGrantedScopesKey); 92get => GetParameter<string>(LoginHintKey); 101get => GetParameter<string>(PromptParameterKey);
GoogleHandler.cs (1)
95var parameterValue = properties.GetParameter<T>(name);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (5)
MicrosoftAccountHandler.cs (1)
109var parameterValue = properties.GetParameter<T>(name);
MicrosoftChallengeProperties.cs (4)
64get => GetParameter<string>(ResponseModeKey); 77get => GetParameter<string>(DomainHintKey); 89get => GetParameter<string>(LoginHintKey); 101get => GetParameter<string>(PromptKey);
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthChallengeProperties.cs (1)
43get => GetParameter<ICollection<string>>(ScopeKey)!;
OAuthHandler.cs (1)
302var scopeParameter = properties.GetParameter<ICollection<string>>(OAuthChallengeProperties.ScopeKey);
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectChallengeProperties.cs (2)
51get => GetParameter<TimeSpan?>(MaxAgeKey); 60get => GetParameter<string>(PromptKey);
OpenIdConnectHandler.cs (3)
406Prompt = properties.GetParameter<string>(OpenIdConnectParameterNames.Prompt) ?? Options.Prompt, 407Scope = string.Join(" ", properties.GetParameter<ICollection<string>>(OpenIdConnectParameterNames.Scope) ?? Options.Scope), 429var maxAge = properties.GetParameter<TimeSpan?>(OpenIdConnectParameterNames.MaxAge) ?? Options.MaxAge;