Getting user credentials used to make the REST call

I have a Jira plugin exposing a REST api. Users call can that API to active functionnalities of the plugin using their Jira credentials with basic authentication.

My problem is that I would need the can Tempo Account’s (another Jira plugin) REST api, but I need the user’s credentials to make that call. Is there a way to get those credentials from the request that my plugin receives?