Configuring the GA4GH Passport Clients
Stefan Negru, Teemu Kataja
ELIXIR AAI and Passport training 23 June 2021
European Life Sciences Infrastructure for Biological Information
www.elixir-europe.org
European Life Sciences Infrastructure for Biological Information
www.elixir-europe.org
Outlook
Linking EGA - Elixir ID
GA4G Passport - Example use case
Oauth Device code flow / Device Authorization Flow
FUSE with Device Authorization Flow
Request/Response
{
"device_code": "Ag_EE...ko1p",
"user_code": "QTZL-MCBW",
"verification_uri": "elixir-aai/activate",
"verification_uri_complete": "elixir-aai/activate?user_code=QTZL-MCBW",
"expires_in": 900,
"interval": 5
}
curl --request POST \
--url 'elixir-aai/device/code' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'client_id=YOUR_CLIENT_ID' \
--data scope=SCOPE \
--data audience=AUDIENCE
Questions and Answers - so far
Break - 10 min
Show and tell
Summary of the Commands
Start 2 ssh sessions:
- ssh -p <port> cineca-training@128.214.252.28
- ssh -p <port> cineca-training@128.214.252.28
1st ssh session:
fuse --help
fuse --repository https://test.sd.csc.fi/sda
^ this will list a token which can be inspected in the 2nd ssh session
2nd ssh session
ls -al /home/cineca-training/Datasets
^ one folder/directory should be present
ga4gh-inspect --help
ga4gh-inspect --decode <token>
ga4gh-inspect --visas <token>
ga4gh-inspect --visas-decoded <token>
less /usr/local/lib/python3.8/dist-packages/sda_fuse_client/auth/config/remote_qr.ini
GA4GH Passports from multiple sources
Summary of the Commands
Start/reuse the 2 ssh sessions:
- ssh -p <port> cineca-training@128.214.252.28
- ssh -p <port> cineca-training@128.214.252.28
1st ssh session:
(Close the previous fuse if still open) - Ctrl + C or Cmd + C
fuse --repository https://test.sd.csc.fi/sda
^ this will list a token which can be inspected in the 2nd ssh session
2nd ssh session
ls -al /home/cineca-training/Datasets
^ two folders/directories should be present
Where to go next
Additional links