I am using msal4j to create an authentication authorization web app that works with azureAD.
https://github.com/Azure-Samples/ms-identity-java-webapp/tree/master/msal-java-webapp-sample
I have run the above sample with springboot, and this sample only authenticates and authorizes one application. However, I would like to authenticate and authorize multiple applications and obtain access tokens.
After I get the access token for the first app, I rewrite the client id, secret And
By using this code I was able to get the token for the second app. However, with this method, I had to enter my username and password twice. It is very tedious and I would like to be able to enter only the first time and not the rest of the time.
Thanks