From febd1022f1721d6e83df60d4f5d47f7b609a7bc9 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 8 Oct 2024 18:38:45 +0200 Subject: [PATCH] test fix --- slides.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/slides.md b/slides.md index 60b1f4c..679c7cd 100644 --- a/slides.md +++ b/slides.md @@ -391,7 +391,7 @@ What is on the right is the certification Web API, loaded live. Use with caution --- layout: top-title color: gray-light -align: l-lm +align: lm title: CLI --- @@ -401,21 +401,23 @@ title: CLI :: content :: -Logging in (using the `diracx cli`): +1. Logging in (using the `diracx cli`): -```sh +```sh {maxHeight:'100px'} ❯ export DIRACX_URL=https://diracx-cert.app.cern.ch -❯ dirac login gridpp (diracx-dev) +❯ dirac login gridpp Logging in with scopes: ['vo:gridpp'] Now go to: https://diracx-cert.app.cern.ch/api/auth/device?user_code=XYZXYZXYZ -.....Saved credentials to /home/fstagni/.cache/diracx/credentials.json +...Saved credentials to /home/fstagni/.cache/diracx/credentials.json Login successful! ``` -Submitting a job (using Python `requests`): +2. Submitting a job (using Python `requests`): + + -```python{1,3-8,10-28,30-32}{lines:true,maxHeight:'100px'} +```py import requests # Define the headers @@ -450,7 +452,7 @@ response = requests.post('https://diracx-cert.app.cern.ch/api/jobs/', headers=he ``` -Getting its status (using `curl`): +3. Getting its status (using `curl`): ````md magic-move ```sh @@ -459,7 +461,6 @@ curl -X 'GET' \ -H 'accept: application/json' \ -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXV ...' | jq ``` - ```json { "8971": { @@ -468,9 +469,8 @@ curl -X 'GET' \ "ApplicationStatus": "Unknown" } } - ``` - +```` --- layout: iframe-left @@ -544,18 +544,18 @@ layout: top-title-two-cols color: gray-light align: c-lm-rm title: proxies+tokens -columns: is-4 +columns: is-3 --- :: title :: -# On proxies and tokens +# More on proxies and tokens :: left :: -```mermaid {theme: 'forest', scale: 0.5} +```mermaid {theme: 'forest', scale: 0.4} sequenceDiagram - title Tokens with standard OAuth2 flow + title DiracX: tokens with standard OAuth2 flow create actor U as User create participant DiracX U->>DiracX: Login @@ -574,9 +574,9 @@ DiracX delivers its own tokens, they are not the same tokens used for the Grid e :: right :: -```mermaid {theme: 'forest', scale: 0.5} +```mermaid {theme: 'forest', scale: 0.4} sequenceDiagram - title Working with proxy and token + title DIRAC+DiracX: Working with proxies and tokens create actor U as User create participant dirac-proxy-init U->>dirac-proxy-init: