oda-hub / frontend-chart

0 stars 0 forks source link

Enable token generation for the use of API #2

Closed andriineronov closed 3 years ago

andriineronov commented 3 years ago

Task #18436 Description

We should enable "trusted users" to get token to use for the API access. This has to be done from the frontend, with a button like "generate token". Clicking on this button a user will be invited to login with some credentials (GitHub, local CDCI login). Mohamed, pleas make a suggestion how this could work. (may be by analogy with CHEOPS, transient analysis etc).

Add Subtasks

Add Related issues

History

1 Updated by Andrii Neronov almost 2 years ago

Refinement:

The action should be like this: in the frontend there will be a button "Get API code" (where there will be a display of a piece of code to reproduce the result with the API. Once somebody clicks on it, he will be invited to login with GitHub, in a new popup window, which will be actually at the "API production" instance of astrooda.

2 Updated by Mohamed Meharga over 1 year ago

Status changed from New to In Progress

3 Updated by Mohamed Meharga over 1 year ago

Status changed from In Progress to Feedback Assignee changed from Mohamed Meharga to Andrii Neronov

Following a discussion with Volodymyr, the purpose of this functionality is to provide a token to the user (if he is allowed to)! The targeted functionality is then to allow the user to : 1- get his token (to be used in the API) if he is already connected 2- request a token via a form if not connected

Andrii, would you confirm ?

4 Updated by Andrii Neronov over 1 year ago

Yes, that's the idea. Not sure, could he/she just get it displayed in a window if he is connected, or this has always to be sent by e-mail?

5 Updated by Mohamed Meharga over 1 year ago

Status changed from Feedback to In Progress Assignee changed from Andrii Neronov to Mohamed Meharga

OK ! If the user is connected, the token is available in a cookie, when clicking on the button "API token" the token is copied to the clipboard. If not, a form is opened to allow the user requesting a token (an account!)

6 Updated by Andrii Neronov over 1 year ago

Target version changed from ODA 1.2 to ODA 1.3

7 Updated by Volodymyr Savchenko 7 months ago

Parent task set to #20099

volodymyrss commented 3 years ago

this is too close to #5