cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Keycloak Authenticaiton

suayb58
Champ on-the-rise
Champ on-the-rise

Hello,Everyone.i am using Alfresco 6.0 community edition.I would like to authenticate in alfresco over Keycloak.I could not find the document related to this subject.Do you have a document telling you how to do it step by step?Someone with information on this topic help me.


					
				
			
			
				
			
			
			
			
			
			
			
		
10 REPLIES 10

angelborroy
Community Manager Community Manager
Community Manager

If you type "Keycloak" on the search box of this site (community.alfresco.com), the first entry is:

https://community.alfresco.com/people/gravitonian/blog/2018/07/17/getting-started-with-alfresco-iden... 

Hyland Developer Evangelist

suayb58
Champ on-the-rise
Champ on-the-rise

Thanks.I have reviewed the link to this link.This link does not contain authenticate in alfresco community edition over Keycloak.I need Alfresco community edition authentication via keycloak.

Just change a line in Docker Compose and it's done:

from "image: alfresco/alfresco-content-repository:6.0.0"

to "image: alfresco/alfresco-content-repository-community:6.0.7-ga” 

Hyland Developer Evangelist

suayb58
Champ on-the-rise
Champ on-the-rise
this solution works fine in alfresco community edition 6.0, does not it?

I've tested the same configuration with the only change I gave you before and, yes, it works properly.

Hyland Developer Evangelist

miroslav
Star Contributor
Star Contributor

It is not working for me.. Am I missing something? 

curl http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJtbWVwTVAzZmUybzBSak50UjlsR19WRWZRaXZ4dVBrRTJUU1VUeTVqZ3dFIn0.eyJleHAiOjE2MDQ5MzcyNjcsImlhdCI6MTYwNDkzNjk2NywianRpIjoiYzY4Njc2MGEtNTMwNy00ZDU2LThiY2ItMDcwMmJjM2Q0MjhiIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MTgwL2F1dGgvcmVhbG1zL2FsZnJlc2NvLWRicCIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIwYzE0ZjY1Mi1kNTEyLTQyMTQtOGFhZS1iMTg5Y2I5MjUwYTgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhbGZyZXNjby1jbGllbnQiLCJzZXNzaW9uX3N0YXRlIjoiY2VlNDZlY2EtNDMyYy00NzQ5LTg4OGEtNTJkMjAzZTg2Nzk0IiwiYWNyIjoiMSIsInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJlbWFpbCBwcm9maWxlIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJuYW1lIjoiQWxmcmVzY28gQWRtaW4iLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhZG1pbiIsImdpdmVuX25hbWUiOiJBbGZyZXNjbyIsImZhbWlseV9uYW1lIjoiQWRtaW4iLCJlbWFpbCI6ImFkbWluQGFwcC5hY3Rpdml0aS5jb20ifQ.mtdM0yK62_ChulIlvnA-gKQ9-nbvqysEtEYUuY9O5yIJVqm80VDMz86Y12lq5xRHJJDAmgdD0iSHKUyqRG3KHmEWtt9ibWitXCZRg6k8deq9qZyWSUDWZXt4d5lEiwH9yu9TRHByq3SDYKVOQK95l_j-9XxyLI2Yt4rC2j7eESqKQJfT_3XT_ZbGtdUY8OGFvH6CNAGecSMp0p3fIbLgTLcapQyGST0KA4DbgY5gvHdHhylsdQocAdMdZB7gstiyg6qi4Frppk7QgBx7R0o7UnixrDQAqPIbRDU1AU5C0hS7Se7vMNH1Al5c9EXk8mSmKI8XsvbxgdYbHxdrgalg9w" | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   312    0   312    0     0    829      0 --:--:-- --:--:-- --:--:--   827
{
    "error": {
        "briefSummary": "10090000 Authorization 'bearer' not supported.",
        "descriptionURL": "https://api-explorer.alfresco.com",
        "errorKey": "framework.exception.ApiDefault",
        "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions",
        "statusCode": 401
    }
}

suayb58
Champ on-the-rise
Champ on-the-rise

how can i run this githup file? I am using windows server 2012 as my operating system.

suayb58
Champ on-the-rise
Champ on-the-rise

 I wrote this code in the docker compose file.My Alfresco Community version is 201802EA .When I write console docker compose up, I get an error in this part.How can i solve this problem?

image: alfresco/alfresco-content-repository-community:6.0.0


					
				
			
			
				
			
			
			
			
			
			
			
		

abbask01
Star Collaborator
Star Collaborator

Did you got it working. i'm getting this error - 

java.lang.IllegalArgumentException: No enum constant org.keycloak.common.enums.SslRequired.FALSE
Regards,
Abbas