-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from cserf/doc
Documentation how to interface with CERN SSO
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,45 @@ | ||
u# How to enable CERN SSO with DiracX | ||
|
||
## Registering the service in SSO | ||
|
||
Detailed instructions can be found here : https://auth.docs.cern.ch/applications/adding-application/ | ||
Go to https://application-portal.web.cern.ch/ | ||
|
||
![](./SSO1.png) | ||
|
||
Click on Add an application. Fill the application details withe the Name of your service | ||
|
||
![](./SSO2.png) | ||
|
||
Go to Next step and fill the form with the following parameters : | ||
![](./SSO3.png) | ||
|
||
Then submit. | ||
|
||
## Configuring DiracX | ||
|
||
Update `run_demo.sh` by changing the `idp-url` to `https://auth.cern.ch/auth/realms/cern` and `idp-client-id` to the application identifier you registered previously | ||
|
||
|
||
``` | ||
--idp-url="https://auth.cern.ch/auth/realms/cern" \ | ||
--idp-client-id="diracx-test-cedric" \ | ||
``` | ||
|
||
And create your account in the DIRAC CS | ||
|
||
``` | ||
"${demo_dir}/kubectl" exec deployments/diracx-demo-cli -- bash /entrypoint.sh dirac internal add-user /cs_store/initialRepo \ | ||
--vo="diracAdmin" \ | ||
--sub="<cernaccount>" \ | ||
--preferred-username="admin" \ | ||
--group="admin" >> /tmp/init_cs.log | ||
``` | ||
|
||
|
||
## Extracting users from an egroup | ||
|
||
Members from an egroups can be extracted with the following query (replace `diracproject-users` by the egroup you want to query) : | ||
``` | ||
curl --no-progress-meter --insecure "ldaps://xldap.cern.ch/OU=Users,OU=Organic Units,DC=cern,DC=ch?name?sub?(&(objectClass=user)(memberOf=CN=diracproject-users,OU=e-groups,OU=Workgroups,DC=cern,DC=ch))" | grep name | awk -F ":" '{print $2}' | tr -d '[:blank:]' | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.