Permalink
Browse files

Change authorization URIs

Login and Initialize are now performed against login.live.com.
  • Loading branch information...
1 parent 8726033 commit 01273ca1a1a780c227b8c17b64d8faeeebd1abd9 Simon Krueger committed Apr 6, 2012
View
3 README
@@ -59,7 +59,6 @@ Visit: http://dev.live.com and click the "Documentation" link.
4. Known issues:
-1) Logout does not clear cookies on oauth.live.com.
-2) Login dialog is destroyed on screen rotation if the Activity is not set to
+1) Login dialog is destroyed on screen rotation if the Activity is not set to
ignore orientation changes in AndroidManifest.xml.
@@ -311,9 +311,9 @@ public void addObserver(OAuthRequestObserver observer) {
* passed in listener when it is completed.
*/
public void execute() {
- String displayType = OAuth.DisplayType.TOUCH.toString().toLowerCase();
+ String displayType = OAuth.DisplayType.HOST.toString().toLowerCase();
String responseType = OAuth.ResponseType.CODE.toString().toLowerCase();
- String theme = OAuth.ThemeType.DEFAULT.toString().toLowerCase();
+ String theme = OAuth.ThemeType.ANDROID.toString().toLowerCase();
String locale = Locale.getDefault().toString();
Uri requestUri = Config.INSTANCE.getOAuthAuthorizeUri()
.buildUpon()
@@ -23,10 +23,10 @@
Config() {
apiUri = Uri.parse("https://apis.live.net/v5.0");
apiVersion = "5.0";
- oAuthAuthorizeUri = Uri.parse("https://oauth.live.com/authorize");
- oAuthDesktopUri = Uri.parse("https://oauth.live.com/desktop");
- oAuthLogoutUri = Uri.parse("https://login.live.com/logout.srf");
- oAuthTokenUri = Uri.parse("https://oauth.live.com/token");
+ oAuthAuthorizeUri = Uri.parse("https://login.live.com/oauth20_authorize.srf");
+ oAuthDesktopUri = Uri.parse("https://login.live.com/oauth20_desktop.srf");
+ oAuthLogoutUri = Uri.parse("https://login.live.com/oauth20_logout.srf");
+ oAuthTokenUri = Uri.parse("https://login.live.com/oauth20_token.srf");
}
public Uri getApiUri() {

0 comments on commit 01273ca

Please sign in to comment.