sonata-nfv / tng-sdk-package

The 5GTANGO SDK tool to create and unpack 5GTANGO packages.
http://www.5gtango.eu
Apache License 2.0
7 stars 9 forks source link

Multi-user support #138

Closed mpeuster closed 5 years ago

mpeuster commented 5 years ago

GK will have authenticated users.

GK adds username to the options of the POST request to the un-packager.

TODO: forward this username field to all subsequent requests send to the catalogues.


Example Request:

curl -X POST -v -H "Content-Type: multipart/form-data" \
    -F username="tango_user1" \
    -F package="@misc/5gtango-ns-package-example.tgo" \
    http://127.0.0.1:5099/api/v1/packages

Catalogue requests:

We put the fields into the query to the catalogue when uploading artifacts:

POST /foobar?platform=osm&username=user1

platform = 5gtango, osm, onap