Support OAuth flow for private repo factories on Dashboard #18976
Labels
area/dashboard
kind/task
Internal things, technical debt, and to-do tasks to be performed.
new¬eworthy
For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes
severity/P1
Has a major impact to usage or development of the system.
sprint/current
Milestone
Is your task related to a problem? Please describe.
We are about to merge support of OAuth flow for private repository factories on Che server. In next step that this fucntionality must be supported by dashboard as well.
Describe the solution you'd like
Expected flow is the following:
User accepts factory from private repository;
Dashboard making request to resolve factory details using the reposiroty URL which is provided by user;
(POST
/api/factory/resolver
)Che server recognizes that URL points to private repository and looks for the credentials secret; If no secret present,
initiates the OAuth login procedure by returning the following response:
Please note that parameters
token
andredirect_after_login
are not returned and must be set by Dashboard by its discretion.Dashboard initates OAuth routine using the resulting URL;
In case of Successful completion of OAuth procedure, initial
POST /api/factory/resolve
must be repeated.In case of Unsuccessful completion, error message must be shown.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: