Update wiki links to the new short URL
[aur.git] / doc / sso.txt
blob481166cf445ef5a7075bcfd23772d89b3298a89f
1 Single Sign-On (SSO)
2 ====================
4 This guide will walk you through setting up Keycloak for use with aurweb. For
5 extensive documentation, see <https://www.keycloak.org/documentation.html>.
7 Installing Keycloak
8 -------------------
10 Keycloak is in the official Arch repositories:
12     # pacman -S keycloak
14 The default port is 8080, which conflicts with aurweb’s default port. You need
15 to edit `/etc/keycloak/standalone.xml`, looking for this line:
17     <socket-binding name="http" port="${jboss.http.port:8080}"/>
19 The default developer configuration assumes it is set to 8083. Alternatively,
20 you may customize [options] aur_location and [sso] openid_configuration in
21 `conf/config`.
23 You may then start `keycloak.service` through systemd.
25 See also ArchWiki <https://wiki.archlinux.org/title/Keycloak>.
27 Configuring a realm
28 -------------------
30 Go to <http://127.0.0.1:8083/auth> and log in as administrator. Then, hover the
31 text right below the Keycloak logo at the top left, by default *Master*. Click
32 *Add realm* and name it *aurweb*.
34 Open the *Clients* tab, and create a new *openid-connect* client. Call it
35 *aurweb*, and set the root URL to <http://127.0.0.1:8080> (your aur_location).
37 Create a user from the *Users* tab and try logging in from
38 <http://127.0.0.1:8083/auth/realms/aurweb/account/>.