I'm trying to make an Enterprise app for our company which connects to a lot of O365 features. Since we as developers want to use as many Firebase features as possible we are interested in making a smooth login for our users that can only log in to their work accounts on Microsoft Office and then be fully accessed to Firebase database and Auth. I have read the documentation for custom Auth - but i'm not sure this is secure enough.
- Is there any good examples on how to use your Auth with Microsoft (Azure / Graph) login?
- I will still need the tokens received from Microsoft within the app to make in app requests towards O365 - how can I do this?
- How can I be sure that any string sent to "signInWithCustomToken" won't generate valid access to my database?