magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
505 stars 92 forks source link

Magda Access Token Authentication Support #3404

Open t83714 opened 2 years ago

t83714 commented 2 years ago

Magda Access Token Authentication Support

What's Magda Access Token

Magda access token is a JWT token signed with the private key and can be verified with the public key.

The JWT token payload contains the following fields:

image

Storage Source Access Record

A storage source access record is a metadata record that describes the external storage source access granted to one Magda distribution record. The record comes with a storage-source-access-details aspect with the following fields:

There will be only one storage source access record can be created for the same distribution record.

Please note, the storage source access record will grant the access rather than cover any actual access details (e.g. access token, key etc.). The access details should be managed directly at the access proxy services. e.g. AWS cloudfront + AWS lambda function.

What's the Usage of Magda Access Token

How Magda route the resource access requests