You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thank you so much for developing this plugin! I've set it up and it works for a basic YAMCS instance whose APIs arent protected by token based authentication.
However, I now need to add support for it so that the plugin takes the username and password as part of its config and then gets the bearer token (which is refreshed every 15 mins). This bearer token should be part of every API/Websocket call.
One straightforward approach is to create a tokenManager in utils.js which stores and manages these tokens and then in every fetch() function call, insert the token from this tokenManager. Is there a better way to do this ?
I would really appreciate any help,
Thanks alot!
The text was updated successfully, but these errors were encountered:
@bangpradyumna we don't have experience with this pattern. I would consider doing all authentication / authorization on your proxy server and then pass that as a role for yamcs to manage
@bangpradyumna We would love to support token based authentication for Yamcs. None of our current missions use it because we use institutional authentication mechanisms that are outside of Yamcs itself, so we don't have plans to implement this right now.
We would definitely consider a PR that implements this though, I'm sure a lot of folks would find this useful!
Hello,
Thank you so much for developing this plugin! I've set it up and it works for a basic YAMCS instance whose APIs arent protected by token based authentication.
However, I now need to add support for it so that the plugin takes the username and password as part of its config and then gets the bearer token (which is refreshed every 15 mins). This bearer token should be part of every API/Websocket call.
One straightforward approach is to create a tokenManager in utils.js which stores and manages these tokens and then in every fetch() function call, insert the token from this tokenManager. Is there a better way to do this ?
I would really appreciate any help,
Thanks alot!
The text was updated successfully, but these errors were encountered: