Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should there be commands being helpers to generate JWT for the currently logged in user or any addon it has access? #548

Open
Soulou opened this issue Apr 20, 2020 · 1 comment

Comments

@Soulou
Copy link
Member

Soulou commented Apr 20, 2020

No description provided.

@Soulou
Copy link
Member Author

Soulou commented Apr 20, 2020

Juste que je comprennes bien, tu aimerais bien pouvoir faire (par exemple en prenant des options curl)

scalingo api -X GET /apps/action -H '...' -d '{}'

ou

scalingo --app my-app --addon my-addon db-api /users -d '{"username": "fabien", "readonly": true}'

Le endpoint est fictif, mais c'est l'idée que tu partages ?

--

plutot l'idée 1, avec un sous ensemble limitée d'option curl.

scalingo api --get
--db-api /apps/action -d '{}'

ou

scalingo api --get
--api /apps/action -d '{}'

Je n'ai pas vu de cas dans la documentation où j'ai besoin d'injecter un header.

Full conversation here: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/conversation/26691486318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants