OAuth Authentication filter for Share
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2012 01:46 AM
Hi community,
Just a short message to share a small project.
I just published on Github (https://github.com/gdepourtales/share-oauth-sso). The Alfresco OAuth SSO module lets users login in Alfresco Share using their Google Apps account. The module creates automatically accounts which do not exist to make Share and Google Apps integrate transparently. Configuration uses standard Share Surf configuration.
Use it and fork it
Guy
Just a short message to share a small project.
I just published on Github (https://github.com/gdepourtales/share-oauth-sso). The Alfresco OAuth SSO module lets users login in Alfresco Share using their Google Apps account. The module creates automatically accounts which do not exist to make Share and Google Apps integrate transparently. Configuration uses standard Share Surf configuration.
Use it and fork it

Guy
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2012 11:18 AM
Thanks for sharing this project, looks very interesting.
Does it allow for fallback, ie if you are not authenticated via Gapps, can you login with a standard Alfresco account?
The users created, is the user id equals to email?
Is there a way to turn off auto-creation and only allow for pre-created users to login?
Another thing is if one could map existing user id:s to Gapps user ids.
Haven't had the chance to test your add-on, but will do when I find some time.
Does it allow for fallback, ie if you are not authenticated via Gapps, can you login with a standard Alfresco account?
The users created, is the user id equals to email?
Is there a way to turn off auto-creation and only allow for pre-created users to login?
Another thing is if one could map existing user id:s to Gapps user ids.
Haven't had the chance to test your add-on, but will do when I find some time.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2013 03:45 PM
Hi Loftux
Sorry for the late answer. So here my answers :
<blockquote> Does it allow for fallback, ie if you are not authenticated via Gapps, can you login with a standard Alfresco account?</blockquote>
Yes it does. Aditionnally, you can pass add the bypassOAuth parameter to your request to completely skip oauth redirection.
<blockquote>The users created, is the user id equals to email?</blockquote>
Username is the first part of the email ie for a user with email first.last@domain.com, the username will be
<blockquote>Is there a way to turn off auto-creation and only allow for pre-created users to login?</blockquote>
Not yet. but it's a good idea. I will add the feature
<blockquote>Another thing is if one could map existing user id:s to Gapps user ids.</blockquote>
Do you mean openid ?
<blockquote>Haven't had the chance to test your add-on, but will do when I find some time.</blockquote>
Hope you did by now
Cheers
Guy
Sorry for the late answer. So here my answers :
<blockquote> Does it allow for fallback, ie if you are not authenticated via Gapps, can you login with a standard Alfresco account?</blockquote>
Yes it does. Aditionnally, you can pass add the bypassOAuth parameter to your request to completely skip oauth redirection.
<blockquote>The users created, is the user id equals to email?</blockquote>
Username is the first part of the email ie for a user with email first.last@domain.com, the username will be
first.last
<blockquote>Is there a way to turn off auto-creation and only allow for pre-created users to login?</blockquote>
Not yet. but it's a good idea. I will add the feature
<blockquote>Another thing is if one could map existing user id:s to Gapps user ids.</blockquote>
Do you mean openid ?
<blockquote>Haven't had the chance to test your add-on, but will do when I find some time.</blockquote>
Hope you did by now
Cheers
Guy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2014 07:13 AM
I am a bit stuck . I need just a kick start . Please help .
I have followed the instructions … and got 2 jar files
cp /usr/local/src/share-oauth-2.2.jar /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/lib/share-oauth-2.2.jar
cp /usr/local/src/scribe-1.3.5.jar /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/lib/share-oauth-2.2.jar
And copied it to the location. Then i changed web.xml with :
<filter>
<description>Oauth Authentication Support</description>
<filter-name>OAuthAuthenticationFilter</filter-name>
<filter-class>ch.gadp.alfresco.OAuthSSOAuthenticationFilter</filter-class>
</filter>
<filter-mapping> <filter-name>OAuthAuthenticationFilter</filter-name> <url-pattern>/page/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>OAuthAuthenticationFilter</filter-name> <url-pattern>/p/*</url-pattern> </filter-mapping>
And just at that point share stopped working.
It looks to me that tomcat reloaded server as soon as web.xml was changed.
And then spat following to catalina.out
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/share] startup failed due to previous errors
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/share] is completed
It is clear "filter" thing . Where should i look ? It looks like i didnt register JAR or something.
How can i get debug level up so i can see more info on problems and fix them ?
Note : I used to do java programming, but i am loosing it here on tomcat atm .
I have followed the instructions … and got 2 jar files
cp /usr/local/src/share-oauth-2.2.jar /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/lib/share-oauth-2.2.jar
cp /usr/local/src/scribe-1.3.5.jar /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/lib/share-oauth-2.2.jar
And copied it to the location. Then i changed web.xml with :
<filter>
<description>Oauth Authentication Support</description>
<filter-name>OAuthAuthenticationFilter</filter-name>
<filter-class>ch.gadp.alfresco.OAuthSSOAuthenticationFilter</filter-class>
</filter>
<filter-mapping> <filter-name>OAuthAuthenticationFilter</filter-name> <url-pattern>/page/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>OAuthAuthenticationFilter</filter-name> <url-pattern>/p/*</url-pattern> </filter-mapping>
And just at that point share stopped working.
It looks to me that tomcat reloaded server as soon as web.xml was changed.
And then spat following to catalina.out
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/share] startup failed due to previous errors
Mar 03, 2014 5:04:26 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/share] is completed
It is clear "filter" thing . Where should i look ? It looks like i didnt register JAR or something.
How can i get debug level up so i can see more info on problems and fix them ?
Note : I used to do java programming, but i am loosing it here on tomcat atm .

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2014 06:04 AM
I am experiencing a similar problem. I followed the steps in the instructions and share stopped working.
HTTP Status 503 - This application is not currently available
I wonder if in the second step “deploy library” one needs to do an additional step to load the jar. Thank you for your help!
HTTP Status 503 - This application is not currently available
I wonder if in the second step “deploy library” one needs to do an additional step to load the jar. Thank you for your help!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 07:53 AM
Hi,
I am facing an issue in dependencies and when i have added jars and followed the whole steps i am not even seeing any change in the project. Their is nothing like google login.
I am facing an issue in dependencies and when i have added jars and followed the whole steps i am not even seeing any change in the project. Their is nothing like google login.
