-
Notifications
You must be signed in to change notification settings - Fork 24
Add initial page about IdP support #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| Introduction to SSSD's Identity Provider (IdP) support | ||
| ###################################################### | ||
|
|
||
| OAuth2.0/OIDC based Identity Providers (IdPs) such as Keycloak, EntraID, and | ||
| Okta are the preferred solutions for Identity Management of web-based | ||
| applications and services. | ||
|
|
||
| If an IdP infrastructure is already available and used for web applications | ||
| SSSD's IdP provider can be used to allow user-management and authentication on | ||
| the system level as well. Given the main use case of IdPs, to authenticate a | ||
| single user against a web service, the integration with often terminal-based | ||
| multi-user systems requires some compromises. E.g. the authentication requires | ||
| an interaction with the IdP with the help of a web-browser. In a terminal-based | ||
| environment this would require an additional device with a web-browser. | ||
|
|
||
danlavu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| For authentication SSSD is using the `OAuth 2.0 Device Authorization Grant flow | ||
| <https://datatracker.ietf.org/doc/html/rfc8628>`_ . To look up users and | ||
| groups, independent of an authenticated user, SSSD will use the different REST | ||
| APIs provided by the IdPs and a dedicated IdP client to authenticate against | ||
| the REST endpoint. Since there is no standard for the REST APIs, SSSD has to | ||
| support them individually, currently Keycloak and EntraID are supported. | ||
|
|
||
| There is a `short video with a demo | ||
| <https://sbose.fedorapeople.org/sssd-idp-demo/sssd-idp-demo.mp4>`_ and an | ||
alexey-tikhonov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| extended demo with more details on `Youtube | ||
| <https://www.youtube.com/watch?v=kclXwGuCGGE>`_. There are also `slides and | ||
| recordings of a presentation of this feature at the FOSDEM conference | ||
| <https://archive.fosdem.org/2025/schedule/event/fosdem-2025-4756-sssd-and-idps/>`_. | ||
|
|
||
| Basic setup | ||
| *********** | ||
| After installing the packages, especially the `sssd-idp` package, create a | ||
| `sssd.conf` file, for example: | ||
|
|
||
| .. code-block:: text | ||
|
|
||
| [sssd] | ||
| services = nss, pam | ||
| domains = entra_id, keycloak | ||
|
|
||
| [domain/entra_id] | ||
| id_provider = idp | ||
| idp_type = entra_id | ||
| idp_client_id = 12345678-abcd-0101-efef-ba9876543210 | ||
| idp_client_secret = YOUR-CLIENT-SECRET | ||
| idp_token_endpoint = https://login.microsoftonline.com/TENANT-ID/oauth2/v2.0/token | ||
| idp_userinfo_endpoint = https://graph.microsoft.com/v1.0/me | ||
| idp_device_auth_endpoint = https://login.microsoftonline.com/TENANT-ID/oauth2/v2.0/devicecode | ||
| idp_id_scope = https%3A%2F%2Fgraph.microsoft.com%2F.default | ||
| idp_auth_scope = openid profile email | ||
|
|
||
| [domain/keycloak] | ||
| idp_type = keycloak:https://master.keycloak.test:8443/auth/admin/realms/master/ | ||
| id_provider = idp | ||
| idp_client_id = myclient | ||
| idp_client_secret = YOUR-CLIENT-SECRET | ||
| idp_token_endpoint = https://master.keycloak.test:8443/auth/realms/master/protocol/openid-connect/token | ||
| idp_userinfo_endpoint = https://master.keycloak.test:8443/auth/realms/master/protocol/openid-connect/userinfo | ||
| idp_device_auth_endpoint = https://master.keycloak.test:8443/auth/realms/master/protocol/openid-connect/auth/device | ||
| idp_id_scope = profile | ||
| idp_auth_scope = openid profile email | ||
|
|
||
|
|
||
| [nss] | ||
| default_shell = /bin/bash | ||
| fallback_homedir = /home/%f | ||
alexey-tikhonov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Please note that the IdP clients must have the permissions to read user and | ||
| group attributes. More details about the new configuration options can be found | ||
| in the ``sssd-idp(5)`` man page. | ||
|
|
||
| Since IdP providers typically do not provide home directories or default shell | ||
| reasonable defaults are added to the sample configuration. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.