Authenticate to azure via external web app

Viewed 35

I've build a single page web app -AppB-. hosted on Azure (Vue.js + python-flask) which requires Microsoft authentication (identity provider = Microsoft).

Now i'm trying to integrate this page to an existing web app -AppA- (not hosted on azure) which also happens to require authentication. The backend of this app is python-flask as well so access to AppB from AppA will be done via redirect(url_of_AppB)

How can i benefit from the authentication on AppA to get rid of the Microsoft authentication layer ? AppA user that will log on AppA and access AppB will automatically be logged with their corresponding Microsoft user on AppB. So the UX will be smoother for customers.

I was thinking of doing the following :

on AppA :

Sending tuple credentials=(user,pwd) when doing redirect(url_of_AppB,credentials)

on AppB :

Use the UsernamePasswordCredential() constructor from azure.identity in order to authenticate the incoming user.

Thanks

0 Answers
Related