Interface OAuthServiceProviderRegistry
- All Known Implementing Classes:
OAuthServiceProviderRegistryImpl
public interface OAuthServiceProviderRegistry
This service is used to manage OAuth Service Providers: ie REST Services that can be used by Nuxeo via OAuth.
Typically, this service is used by Shindig to determine what what shared secret should be used by gadgets to fetch their data.
- Author:
- tiry
-
Method Summary
Modifier and TypeMethodDescriptionaddReadOnlyProvider
(String gadgetUri, String serviceName, String consumerKey, String consumerSecret, String publicKey) This method is here for compatibility reasons.void
deleteProvider
(String providerId) Deletes a provider.void
deleteProvider
(String gadgetUri, String serviceName) Deletes a provider.getProvider
(String gadgetUri, String serviceName) Select the best provider given.Return the list of all know providers (both readonly and editable ones).
-
Method Details
-
getProvider
Select the best provider given.- Parameters:
gadgetUri
- the gadget url (or AppId)serviceName
- the service name as defined in MakeRequest
-
addReadOnlyProvider
NuxeoOAuthServiceProvider addReadOnlyProvider(String gadgetUri, String serviceName, String consumerKey, String consumerSecret, String publicKey) This method is here for compatibility reasons. Providers that are directly contributed to the OpenSocialService are forwarded to the new centralized service. -
deleteProvider
Deletes a provider. -
deleteProvider
Deletes a provider. -
listProviders
List<NuxeoOAuthServiceProvider> listProviders()Return the list of all know providers (both readonly and editable ones).
-