Alfresco使用google凭据登录

Alfresco使用google凭据登录,alfresco,alfresco-share,google-authentication,google-authenticator,alfresco-webscripts,Alfresco,Alfresco Share,Google Authentication,Google Authenticator,Alfresco Webscripts,我想用谷歌证书登录Alfresco仪表板。我在下面看到了一个示例应用程序 但这对我不起作用 我使用的是Alfresco 5.0企业版。 我已经下载了这个项目,我已经完成了所有的步骤 我已经构建了上面提到的项目,并部署了JAR 我在web.xml文件中添加了以下代码段 <filter> <description>Oauth Authentication Support</description> <filter-name>OAuth

我想用谷歌证书登录Alfresco仪表板。我在下面看到了一个示例应用程序

但这对我不起作用

我使用的是Alfresco 5.0企业版。 我已经下载了这个项目,我已经完成了所有的步骤

我已经构建了上面提到的项目,并部署了JAR

我在web.xml文件中添加了以下代码段

<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>

Oauth身份验证支持
OAuthAuthenticationFilter
ch.gadp.alfresco.OAuthSSOAuthenticationFilter
OAuthAuthenticationFilter
/页面/*
OAuthAuthenticationFilter
/p/*
我在share-config.custom.xml文件中添加了以下配置

<config evaluator="string-compare" condition="OAuthFilter"> <!-- the condition must always be OAuthFilter -->
        <repository>
            <!-- The host of the Alfresco repository webapp -->
            <host>localhost</host>
            <!-- The port of the Alfresco repository webapp. Put 80 for standard HTTP-->
            <port>8081</port>
            <!-- The protocol to access the Alfresco repository -->
            <protocol>http</protocol>
              <!-- The API access URI. If you use standard Alfresco, this should not change -->
            <api>/alfresco/service/api</api>
               <!-- The admin user who is able to create new users -->
            <admin>admin</admin>
            <!-- The password of the admin user -->
            <password>admin</password>
            <!-- The unique password for all users authenticated with OAuth. Choose one very complicated :) -->
            <user-password>gotpxdKFjA_uxzG5SdGu</user-password>
            <!-- The domains for which incoming user should be restricted to. If blank, any valid email will be accepted -->
            <user-domains>nxc.no</user-domains>
        </repository>
        <oauth-api>
            <!-- The key of your API application -->
            <key>my key</key>
            <!-- The URI from which get the user profile informations -->
            <uri>https://www.googleapis.com/oauth2/v1/userinfo</uri>
            <!-- The secret of your API application -->
            <secret>my secret</secret>
            <!-- The scope(s) for getting data -->
            <scope>https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email</scope>
            <!-- This is a constant and my be different in future releases -->
            <name>GoogleApi</name>
        </oauth-api>
    </config>

本地服务器
8081
http
/露天/服务/空气污染指数
管理
管理
gotpxdKFjA_xZG5SDGU
nxc.no
我的钥匙
https://www.googleapis.com/oauth2/v1/userinfo
我的秘密
https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
古格里皮
我已经启动了服务器,但没有看到任何变化

我如何知道用户登录仪表板的过程。因为在alfresco中编写的所有内容都是web脚本,我如何让google用户登录仪表板

任何回答都会帮我很大的忙谢谢你

现在你可能想使用Google2Api。配置中也缺少提示设置。


谷歌2API
汽车

您可以扩展以下项目-。它使用oauth2通过LinkedIn帐户登录Alfresco


youtube上有视频“它是如何工作的”-

请添加您尝试过的内容,以及您正在遵循的步骤。5.0版中似乎发生了一些变化。
        <!-- This is a constant and my be different in future releases -->
        <name>Google2Api</name>
        <!-- Whether to re-prompt the user for consent -->
        <prompt>auto</prompt>