-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
511216: Support central USS OAuth login in MPC
Use USS 1.1. Remove reflective compatibility layer to support old and new USS releases. Bug: 511216 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=511216
- Loading branch information
Showing
12 changed files
with
70 additions
and
727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...clipse.epp.mpc.core/src/org/eclipse/epp/internal/mpc/core/service/MPCOAuthParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2010 The Eclipse Foundation and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* The Eclipse Foundation - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.epp.internal.mpc.core.service; | ||
|
||
import org.eclipse.userstorage.oauth.OAuthParameters; | ||
|
||
final class MPCOAuthParameters extends OAuthParameters { | ||
|
||
private static final String SERVICE_NAME = "mpc"; //$NON-NLS-1$ | ||
|
||
private static final String CLIENT_ID = "1e8b68d6e5015c2bcf8e03d44dd97fc431f17e394860f08f1a05978c"; //$NON-NLS-1$ | ||
|
||
private static final String CLIENT_SECRET = "26e9f81e5d02d4a019e042d012a861f34a446c35cb84070e80278d8e"; //$NON-NLS-1$ | ||
|
||
private static final String CLIENT_KEY = "9d08c11f742f53a2cd6348d373fd1fa0b079694199f760b315a12a"; //$NON-NLS-1$ | ||
|
||
// FIXME: these should be the uss_project_* alternatives | ||
//private static final String[] DEFAULT_MPC_SCOPES = { "profile", "uss_project_retrieve", "uss_project_update", "uss_project_delete" }; | ||
private static final String[] DEFAULT_MPC_SCOPES = { "profile", "uss_retrieve", "uss_update" }; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ | ||
|
||
@Override | ||
protected String getServiceName() { | ||
return SERVICE_NAME; | ||
} | ||
|
||
@Override | ||
protected String getDefaultClientId() { | ||
return CLIENT_ID; | ||
} | ||
|
||
@Override | ||
protected String getDefaultClientSecret() { | ||
return CLIENT_SECRET; | ||
} | ||
|
||
@Override | ||
protected String getDefaultClientKey() { | ||
return CLIENT_KEY; | ||
} | ||
|
||
@Override | ||
protected String[] getDefaultScopes() { | ||
return DEFAULT_MPC_SCOPES; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
135 changes: 0 additions & 135 deletions
135
...eclipse.epp.mpc.core/src/org/eclipse/epp/internal/mpc/core/service/StorageConfigurer.java
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
...se.epp.mpc.core/src/org/eclipse/epp/internal/mpc/core/service/USS10StorageConfigurer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.