my Microsoft Teams app needs to access a REST web service that uses Basic Authentication.
the tutorials only seem to show how to do this for authentication with Azure Active Directory:
the above tutorial shows the user a login prompt and authenticates client side. how do i implement something like this for Basic Authentication?
EDIT: i'm mentioning client side because i want Teams to remember the login. the web service is basically for collaboration. so i can't use the same account for all users
EDIT2
for completeness i'm including an example client side call that ended up working (it shows a login popup to the user the first time as it does in a browser):
var url = "https://example.com/Service.svc/Request";
var init = {credentials:"include", headers:{"Accept":"application/json"}};
fetch(url,init)
.then(response => response.text())
.then(data => alert(data));