You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by hs...@apache.org on 2012/11/29 21:16:36 UTC

svn commit: r1415354 - in /shindig/trunk/java: common/conf/shindig.properties gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java

Author: hsaputra
Date: Thu Nov 29 20:16:36 2012
New Revision: 1415354

URL: http://svn.apache.org/viewvc?rev=1415354&view=rev
Log:
Small cleanup on alignment and typos on comments

Modified:
    shindig/trunk/java/common/conf/shindig.properties
    shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java

Modified: shindig/trunk/java/common/conf/shindig.properties
URL: http://svn.apache.org/viewvc/shindig/trunk/java/common/conf/shindig.properties?rev=1415354&r1=1415353&r2=1415354&view=diff
==============================================================================
--- shindig/trunk/java/common/conf/shindig.properties (original)
+++ shindig/trunk/java/common/conf/shindig.properties Thu Nov 29 20:16:36 2012
@@ -43,7 +43,7 @@ shindig.oauth2.import=false
 ### Determines if the import will start by removing everything currently in persistence.
 shindig.oauth2.import.clean=false
 # Set to true if you want to allow the use of 3-party (authorization_code) OAuth 2.0 flow when viewer != owner.
-# This setting is not recommeneded for pages that allow user-controlled javascript, since
+# This setting is not recommended for pages that allow user-controlled javascript, since
 # that javascript could be used to make unauthorized requests on behalf of the viewer of the page
 shindig.oauth2.viewer-access-tokens-enabled=true
 # Set to true to send extended trace messages to the client.  Probably want this to be false for
@@ -52,7 +52,7 @@ shindig.oauth2.send-trace-to-client=true
 shindig.signing.oauth2.state-key=
 
 # Set to true if you want to allow the use of 3-legged OAuth tokens when viewer != owner.
-# This setting is not recommeneded for pages that allow user-controlled javascript, since
+# This setting is not recommended for pages that allow user-controlled javascript, since
 # that javascript could be used to make unauthorized requests on behalf of the viewer of the page
 shindig.signing.viewer-access-tokens-enabled=false
 

Modified: shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java
URL: http://svn.apache.org/viewvc/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java?rev=1415354&r1=1415353&r2=1415354&view=diff
==============================================================================
--- shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java (original)
+++ shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth2/OAuth2Module.java Thu Nov 29 20:16:36 2012
@@ -114,14 +114,14 @@ public class OAuth2Module extends Abstra
     private final BasicOAuth2Store store;
 
     @Inject
-    public OAuth2StoreProvider(@Named(OAuth2Module.OAUTH2_REDIRECT_URI)
-    final String globalRedirectUri, @Named(OAuth2Module.OAUTH2_IMPORT)
-    final boolean importFromConfig, @Named(OAuth2Module.OAUTH2_IMPORT_CLEAN)
-    final boolean importClean, final Authority authority, final OAuth2Cache cache,
-            final OAuth2Persister persister, final OAuth2Encrypter encrypter, @Nullable
-            @Named("shindig.contextroot")
-            final String contextRoot, @Named(OAuth2FetcherConfig.OAUTH2_STATE_CRYPTER)
-            final BlobCrypter stateCrypter) {
+    public OAuth2StoreProvider(
+        @Named(OAuth2Module.OAUTH2_REDIRECT_URI) final String globalRedirectUri,
+        @Named(OAuth2Module.OAUTH2_IMPORT) final boolean importFromConfig,
+        @Named(OAuth2Module.OAUTH2_IMPORT_CLEAN) final boolean importClean,
+        final Authority authority, final OAuth2Cache cache, final OAuth2Persister persister,
+        final OAuth2Encrypter encrypter,
+        @Nullable @Named("shindig.contextroot") final String contextRoot,
+        @Named(OAuth2FetcherConfig.OAUTH2_STATE_CRYPTER) final BlobCrypter stateCrypter) {
 
       this.store = new BasicOAuth2Store(cache, persister, encrypter, globalRedirectUri, authority,
               contextRoot, stateCrypter);