ONLYOFFICE / ControlPanel

Tools for administrating self-hosted ONLYOFFICE.
http://www.onlyoffice.com
Apache License 2.0
16 stars 11 forks source link

SSO SAML with Keycloak #6

Open VincentSC opened 1 year ago

VincentSC commented 1 year ago

Generally works. Not done yet:

Keycloak

Settings:

Keys:

Client Scopes:

OnlyOffice

Debugging

In onlyoffice-community-server you'll find the only interesting logging:

tail -n 50 -f /var/log/onlyoffice/web.sso..log

Feedback welcome on:

georgy-k852 commented 1 year ago

Hello! Thank you for your tutorial. Unfortunatlly, can not use the first step: "Load metadata from https:///auth/realms/master/protocol/saml/descriptor". Please, can you explain what should I full in this gaps:

VincentSC commented 1 year ago

Can not use the first step: "Load metadata from https:///auth/realms/master/protocol/saml/descriptor".

I fixed the text. The <domain> and <keycloak-base> parts were removed at some places. I hope you understood that you need to replace these parts with data from your environment. See for example https://www.itsfullofstars.de/2020/02/keycloak-download-saml-2-0-idp-metadata/ how to get the SAML descriptor, if the url does not work.

Do know that this is quite basic knowledge for Keycloak-administration. I therefore strongly suggest you read a bit further, to prevent from making some serious mistakes.

DanilfromRussia commented 9 months ago

Hello! Thank you for your tutorial. I encountered an endless redirect after successful authorization (user session is displayed in keycloak -> Clients -> Sessions). I analyzed the connection with the SAML-Tracer tool and saw a infinity loop of the following picture.

Снимок экрана от 2023-10-27 16-48-03 Снимок экрана от 2023-10-27 16-49-43

Снимок экрана от 2023-10-27 16-50-01 Снимок экрана от 2023-10-27 16-50-29 Снимок экрана от 2023-10-27 16-51-34 Can you see anything errors? Or maybe you got this err, thank you very mutch

YuanZhencai commented 4 months ago

@VincentSC I want to add additional parameters during SSO login, such as kc_idp_hint=github. What should I do

VincentSC commented 4 months ago

@YuanZhencai I don't know, as I'm not using that myself. Sorry.