cancel
Showing results for 
Search instead for 
Did you mean: 

how to integrate oauth with alfresco

amruta_w
Star Collaborator
Star Collaborator

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 9

cjose
Elite Collaborator
Elite Collaborator

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

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
Champ on-the-rise
Champ on-the-rise

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

amruta_w
Star Collaborator
Star Collaborator

refer the following link

 

sshukla
Champ on-the-rise
Champ on-the-rise

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

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 

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.

image

Thanks

Rudresh

sshukla
Champ on-the-rise
Champ on-the-rise

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

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