how to integrate oauth with alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
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

8 Replies
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.

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

Active Member

Re: how to integrate oauth with alfresco

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

Senior Member

Re: how to integrate oauth with alfresco

refer the following link

 

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.

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 

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?

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.