I want to implement oauth in my office add-ins for that I found office js dialog api and go through it and found it is interesting.
My concern is that I want to implement it with angular 2 so I am not able to make good flow of that.
Expected Result should be
Home page ( Currently simple html page but i want it is part of angular 2 component)
User will select for login
Dialog open for Login
(In dialog first local page and then its redirect to some custom domain page that is outside of current domain)
Callback
Load menus and data after successfully log-in.
After completing oauth, I am loading my angular 2 app. I want to do that full cycle with angular 2 app.