From 42c5828c674543bd09c586eb1304a250742ebc47 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 8 Oct 2024 18:20:16 +0200 Subject: [PATCH] test fix --- slides.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/slides.md b/slides.md index 60b1f4c..d8eab67 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,21 @@ title: CLI :: content :: -Logging in (using the `diracx cli`): +1. Logging in (using the `diracx cli`): -```sh +```Shell {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'} +```python {1,3-8,10-28,30-32}{lines:true,maxHeight:'100px'} import requests # Define the headers @@ -450,17 +450,17 @@ 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 +```Shell curl -X 'GET' \ 'https://diracx-cert.app.cern.ch/api/jobs/status?job_ids=8971' \ -H 'accept: application/json' \ -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXV ...' | jq ``` -```json +```JSON { "8971": { "Status": "Done", @@ -468,9 +468,8 @@ curl -X 'GET' \ "ApplicationStatus": "Unknown" } } - ``` - +```` --- layout: iframe-left @@ -544,18 +543,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 +573,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: