how to integrate oauth with alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
amruta_w
Senior Member

how to integrate oauth with alfresco

Hello,

I tried to integrate oauth(my own oauth) with alfresco but am getting message "Invalid Credentials". The steps i followed attached here in word document format.

Can anyone help me how to integrate oauth with alfresco.

Thanks

Amruta

9 Replies
cjose
Senior Member II

Re: how to integrate oauth with alfresco

This is a new feature in the Process Service product. If it is not working as expected, I suggest raising a case using your customer/partner portal.

amruta_w
Senior Member

Re: how to integrate oauth with alfresco

I am using trial version my own oauth i.e., UAA from cloud foundry.I feel that some cookie is not setting so if u can guide me it will be great.

Thanks

Amruta

sshukla
Active Member

Re: how to integrate oauth with alfresco

I am also facing similar issue. Does anyone know how to fix this?

amruta_w
Senior Member

Re: how to integrate oauth with alfresco

refer the following link

 

sshukla
Active Member

Re: how to integrate oauth with alfresco

Hi Amruta,

I was able to do oauth SSO for APS application. However, I am not able to invoke REST API calls to start process/complete tasks etc. It is giving me unauthorized error. Was wondering if I need to specify security.oauth2.client.checkToken url for my github. I was not able to locate any such url on github though.

amruta_w
Senior Member

Re: how to integrate oauth with alfresco

for github 

security.authentication.use-externalid = true //this line you need to add with github or any oauth

#set this true to enable oauth2 authentication
security.oauth2.authentication.enabled=true
#client id and client secret provided authorization server
security.oauth2.client.clientId=
security.oauth2.client.clientSecret=
security.oauth2.client.userAuthorizationUri=https://github.com/login/oauth/authorize
security.oauth2.client.tokenName=oauth_token
security.oauth2.client.accessTokenUri=https://github.com/login/oauth/access_token
security.oauth2.client.userInfoUri=https://api.github.com/user

or you can refer the link

Configuring the OAuth 2 client for the APS app | Alfresco Documentation 

sshukla
Active Member

Re: how to integrate oauth with alfresco

Hi Amruta,

I have done that and as mentioned before, I am able to successfully get into APS landing page after getting authenticated with github. The problem that I am now facing is that i am not able to access REST APIs, even though I am providing the ouath bearer token in the Authorizartion header. Is there any additional configuration that i need to make?

amruta_w
Senior Member

Re: how to integrate oauth with alfresco

The above what thing i have mentioned that is sufficient, no much configuration. Guess you need to check with your REST APIs. 

Rudresh-Nagaraj
Member II

Re: how to integrate oauth with alfresco

Hi,

Actually I'm following the same setup, with my github clientid and clientSecret.

After grant my github access, I'm gettting Invalid credentials message.
Can you please let me know, is there any other steps I need to complete.

abc1.png

Thanks

Rudresh