GetTokenOptions
An interface implemented by auth flow interfaces supporting scopes.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.CompilerServices;
namespace System.ClientModel.Primitives
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class GetTokenOptions
{
public const string ScopesPropertyName = "scopes";
public const string TokenUrlPropertyName = "tokenUrl";
public const string AuthorizationUrlPropertyName = "authorizationUrl";
public const string RefreshUrlPropertyName = "refreshUrl";
public IReadOnlyDictionary<string, object> Properties { get; }
public GetTokenOptions(IReadOnlyDictionary<string, object> properties)
{
Dictionary<string, object> dictionary = properties as Dictionary<string, object>;
ReadOnlyDictionary<string, object> readOnlyDictionary2;
if (dictionary == null) {
ReadOnlyDictionary<string, object> readOnlyDictionary = properties as ReadOnlyDictionary<string, object>;
readOnlyDictionary2 = ((readOnlyDictionary == null) ? new ReadOnlyDictionary<string, object>(properties.ToDictionary((KeyValuePair<string, object> kvp) => kvp.Key, (KeyValuePair<string, object> kvp) => kvp.Value)) : readOnlyDictionary);
} else
readOnlyDictionary2 = new ReadOnlyDictionary<string, object>(dictionary);
Properties = readOnlyDictionary2;
}
}
}