//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.ApplicationBlock {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.OAuth2;
public class WindowsLiveClient : WebServerClient {
private static readonly AuthorizationServerDescription WindowsLiveDescription = new AuthorizationServerDescription {
TokenEndpoint = new Uri("https://oauth.live.com/token"),
AuthorizationEndpoint = new Uri("https://oauth.live.com/authorize"),
};
///
/// Initializes a new instance of the class.
///
public WindowsLiveClient()
: base(WindowsLiveDescription) {
}
///
/// Well-known scopes defined by the Windows Live service.
///
///
/// This sample includes just a few scopes. For a complete list of scopes please refer to:
/// http://msdn.microsoft.com/en-us/library/hh243646.aspx
///
public static class Scopes {
///
/// The ability of an app to read and update a user's info at any time. Without this scope, an app can access the user's info only while the user is signed in to Live Connect and is using your app.
///
public const string OfflineAccess = "wl.offline_access";
///
/// Single sign-in behavior. With single sign-in, users who are already signed in to Live Connect are also signed in to your website.
///
public const string SignIn = "wl.signin";
///
/// Read access to a user's basic profile info. Also enables read access to a user's list of contacts.
///
public const string Basic = "wl.basic";
}
}
}