Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login with Office 365 Corporate Account #8

Closed
erenoglu opened this issue Oct 3, 2017 · 13 comments
Closed

Can't login with Office 365 Corporate Account #8

erenoglu opened this issue Oct 3, 2017 · 13 comments

Comments

@erenoglu
Copy link

erenoglu commented Oct 3, 2017

Hi, I tried to use your app for logging in to my corporate Office 365 account, but it rejected as this is not a microsoft account.
Any future plans to include corporate accounts as well?

@p3x-robot
Copy link
Member

you can add me the url which you want to use and i can add it in.

@p3x-robot
Copy link
Member

This one:
https://login.microsoftonline.com ?

@erenoglu
Copy link
Author

erenoglu commented Oct 3, 2017

Hi, yes, when I go to www.office.com and try to login, this page comes with a pretty long URL.
once I put my corporate email, it redirects to a secondary authentication, which I authenticate with corporate password, and then re-directed to a 3rd one which is for a one-time password either sent by SMS to my phone or generated through the Microsoft Authenticator app on my mobile.

@p3x-robot
Copy link
Member

p3x-robot commented Oct 3, 2017

i need a url to redirect to onenote that is from a corporate email. without that or corporate testing, i cant fix it.
if you give me a user and login i might be able to do it.

@erenoglu
Copy link
Author

erenoglu commented Oct 3, 2017

Hmm I'm afraid that wont be possible. It redirects to an authentication host on my corporate domain and then once authenticated, redirects to login.microsoftonline.com. There I'm asked for the 2nd layer authentication with an SMS code or code generated by mobile.
Once this is also done, I'm redirected to www.office.com. And from that page if I click to OneNote, I am directed to https://www.onenote.com/..... (when I click OneNote icon, i see in addressbar login.microsoftonline.com momentarily and then onenote page appears)

If you do changes, I can try to test. Maybe we could just have a parameter at first to start the app with www.office.com URL rather than the standard personal login URL? I do not think the rest is very different after authentication. I get an URL like www.onenote.com/

@p3x-robot
Copy link
Member

p3x-robot commented Oct 4, 2017

i guess i can give you 2 menu options:
Menu -> Corporate-> login.microsoftonline.com
Menu -> Corporate-> onenote.com
then you can do whatever you want i guess
is that you will resolve this?

@erenoglu
Copy link
Author

erenoglu commented Oct 4, 2017

Sure, we can give it a try. But I tried logging in on onenote.com already, it directs to the current login screen that your app has. So no use.
The other would work, but then it wont auto redirect us to OneNote page, I guess that's going to be the issue. (if your app is designed for OneNote website layout). When authenticated, and on the portal page, if I click to onenote icon, it directs to https://www.onenote.com/notebooks?auth=2&auth_upn=my_corporate_email_address

@p3x-robot
Copy link
Member

so you mean this url will after login, it will move back to onenote with the corporate onenote page?

@erenoglu
Copy link
Author

erenoglu commented Oct 4, 2017

I opened a browser which I normally dont use, then put the above URL I've given, then it redirected me to the login page, once I logged in, I landed on the OneNote page. So yes, it seems it will move back to OneNote after logging you in.

@p3x-robot
Copy link
Member

p3x-robot commented Oct 4, 2017 via email

@p3x-robot
Copy link
Member

@p3x-robot
Copy link
Member

it is updated in npm as well, if it is not working we can resolve but your help is needed because i do not have a corporate account. just re-open it is not working i just added the url you gave me.

@erenoglu
Copy link
Author

erenoglu commented Oct 9, 2017

Hi, sorry for late return due to some workload. It am glad to confirm that it works good! I was able to login with dual factor authentication and get to OneNote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants