[teiid-issues] [JBoss JIRA] (TEIID-4552) Missing support for connection to Facebook via OAuth 2

Kylin Soong (JIRA) issues at jboss.org
Tue May 16 04:33:00 EDT 2017


    [ https://issues.jboss.org/browse/TEIID-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406798#comment-13406798 ] 

Kylin Soong commented on TEIID-4552:
------------------------------------

Hi [~lfabriko], Can I confim the refresh-token you generate is null?
{code}
<security-domain name="oauth2-security">  
    <authentication>  
        <login-module code="org.teiid.jboss.oauth.OAuth20LoginModule" flag="required" module="org.jboss.teiid.security">  
            <module-option name="client-id" value="XXXmyappid"/>  
            <module-option name="client-secret" value="XXXmyappsecret"/>  
            <module-option name="refresh-token" value="null"/>  
            <module-option name="access-token-uri" value="https://graph.facebook.com/v2.3/oauth/access_token"/>  
        </login-module>  
    </authentication>  
</security-domain>
{code}
If the token is null, I think this is the root reason for ws connector fail to work.

> Missing support for connection to Facebook via OAuth 2
> ------------------------------------------------------
>
>                 Key: TEIID-4552
>                 URL: https://issues.jboss.org/browse/TEIID-4552
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Misc. Connectors
>    Affects Versions: 8.12.5
>            Reporter: Lucie Fabrikova
>            Assignee: Kylin Soong
>             Fix For: 9.3
>
>         Attachments: facebook3-vdb.xml, query, server.log, standalone.xml, teiid-oauth-util.sh-output
>
>
> I would like to connect to facebook resource adapter and configure OAuth 2 security domain for it; I used teiid-oauth-util.sh to generate the security domain (see attachment). Facebook doesn't support refresh tokens and in the generated code is refresh token's value "null".
> If I try to execute VDB with source pointing to such resource adapter I get error:
>  ERROR [org.teiid.CONNECTOR] (Worker0_QueryProcessorQueue13) Connector worker process failed for atomic-request=Gapuea1/NRcn.6.3.0: org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException
>  
> (see server.log, facebook-vdb.xml, standalone.xml)



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list