//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth2.Messages { using System; using System.Collections.Generic; using System.Linq; using System.Text; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.OAuth2.ChannelElements; /// /// A request from a client that should be responded to directly with an access token. /// public interface IAccessTokenRequest : IMessage { /// /// Gets a value indicating whether the client requesting the access token has authenticated itself. /// /// /// false for implicit grant requests; otherwise, true. /// bool ClientAuthenticated { get; } /// /// Gets the identifier of the client authorized to access protected data. /// string ClientIdentifier { get; } /// /// Gets the username of the authorizing user, when applicable. /// /// A non-empty string; or null when no user has authorized this access token. string UserName { get; } /// /// Gets the scope of operations the client is allowed to invoke. /// HashSet Scope { get; } } }