config.oauth2.json Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*******************************************************************************
* OAuth2Client persistence for the default OAuth2Persister *
* org.apache.shindig.gadgets.oauth2.persistence.sample.JSONOAuth2Persister *
* *
* Used in conjunction with the OAuth2 described in: *
* *
* http://code.google.com/p/opensocial-resources/issues/detail?id=1209 *
* *
* to attain the information necessary to complete the OAuth 2.0 request *
* *
* *
*******************************************************************************
*/
{
"gadgetBindings" : {
"googleAPI" : {
"clientName" : "googleApi_OSE_client",
"allowModuleOverride" : "true"
}
},
"clients" : {
"googleApi_OSE_client" : {
"providerName" : "googleAPI",
"redirect_uri" : "%origin%%contextRoot%/gadgets/oauth2callback",
"type" : "confidential",
"grant_type" : "code",
"client_id" : "",
"client_secret" : "",
"sharedToken" : "false"
}
},
"providers" : {
"googleAPI" : {
"client_authentication" : "STANDARD",
"usesAuthorizationHeader" : "false",
"usesUrlParameter" : "true",
"endpoints" : {
"authorizationUrl" : "https://accounts.google.com/o/oauth2/auth",
"tokenUrl" : "https://accounts.google.com/o/oauth2/token"
}
}
}
}