simi / omniauth-office365

omniauth provider for Office365
MIT License
16 stars 24 forks source link

Application #{CLIENT_ID} is not supported for this API version. #7

Open ajpocus opened 8 years ago

ajpocus commented 8 years ago

I installed the gem and configured it as instructed, adding a "scope" parameter. I'm able to sign in to Outlook, but when redirected to the app, I get the following error: " Application #{CLIENT_ID} is not supported for this API version." Does this mean the gem is trying to use v1 of the Office 365 APIs? If so, do you need help porting the gem to v2? Could you please suggest a fix? Any help would be very much appreciated! Thanks in advance!

AmmadJavaid commented 8 years ago

I'm also facing that issue.

error:unauthorized_client
error_description:AADSTS70001: Application 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is not supported for this API version.

Can you please help us in this regard. Thank you

MaRoe commented 8 years ago

Same issue here. Thanks for any help :)

AmmadJavaid commented 8 years ago

In my investigation of this issue, I found, omniauth-office365 gem is using 1.5 version of graph.windows.net/. It should use v2. Please update gem to use the latest versions of the library.

Because of this error, I handled authentication process manually by following this tutorial and its work for me. https://dev.outlook.com/RestGettingStarted/Tutorial/ruby