Identity & SSO
One place decides who you are; every other system just trusts its answer.
The CityScript
This is all there is to it. Change it in the editor and the city redraws.
%% I · Identity & SSO
%% Tools never see a password: they send you to the identity provider, which checks you and says who you are.
city 48x32
district idp "Identity provider" 3,3..16,14
district tools "Internal tools" 21,3..45,14
building keycloak factory in idp "Keycloak"
floor kc.f "Identity"
room kc.oidc service "OIDC and SAML" port=8443 secret=signing-key
room kc.mfa service "MFA"
room kc.db database "Sessions" port=5432
building directory tower in idp "Directory"
floor dir.f "People"
room dir.ldap database "LDAP" port=389
room dir.groups config "Groups and roles"
building grafana depot in tools "Grafana"
floor grafana.f "Login"
room grafana.sso proxy "SSO login" port=443 secret=client-secret
building git depot in tools "Git server"
floor git.f "Login"
room git.sso proxy "SSO login" port=443 secret=client-secret
building portal depot in tools "Admin portal"
floor portal.f "Login"
room portal.sso proxy "SSO login" port=443 secret=client-secret
room portal.roles config "Role mapping"
boundary idp-zone "Identity provider" members=keycloak,directory
boundary tools-zone "Internal tools" members=grafana,git,portal
link grafana.sso -> kc.oidc "OIDC" variant=security
link git.sso -> kc.oidc "OIDC" variant=security
link portal.sso -> kc.oidc "OIDC" variant=security
link kc.oidc -> kc.mfa "second factor" variant=security
link kc.oidc -> dir.ldap "LDAP bind" variant=security
link dir.groups -> portal.roles "roles" variant=security