GithubHelp home page GithubHelp logo

Comments (8)

JuanPuebla avatar JuanPuebla commented on June 13, 2024 2

This is the request that returns a 401 after login in with office365 account:

Request URL:https://graph.microsoft.com/v1.0/me?%24select=mySite
Request Method:GET
Status Code:401 Unauthorized
Remote Address:XX.XXX.88.152:443

Request headers
Accept:application/json
Accept-Encoding:gzip, deflate, sdch, br
Accept-Language:en,ca;q=0.8,es;q=0.6
Authorization:bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1uQ [....]
Connection:keep-alive
Host:graph.microsoft.com
Origin:https://testdev2.virtusclass.com
Referer:https://testdev2.virtusclass.com/Academic/Performance/Homework/Response/151
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Response json
{
"error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": "Access denied. You do not have permission to perform this action or access this resource.",
"innerError": {
"request-id": "41d311a5-cff8-4cda-90cf-972c92e8100e",
"date": "2016-06-13T17:23:42"
}
}
}

I don't know if this is enough...

Thanks

from onedrive-texteditor-js.

rgregg avatar rgregg commented on June 13, 2024

Oh shoot. I need to update the documentation to talk about how to register an app for the v7 picker. Instead of using the traditional Azure Applications configuration, you need to visit the new apps portal: https://apps.dev.microsoft.com, and register an app there.

from onedrive-texteditor-js.

sshilpashetty avatar sshilpashetty commented on June 13, 2024

Hi rgregg ,

Even though i register app for" MSOnedrive for Buisness " in "https://apps.dev.microsoft.com," and set redirect url http://localhost
I am getting the below error

"error=unauthorized_client&error_description=AADSTS70001%3a+Application+%273faa8476-1bfe-43ae-8c9a-d83cd33480d6%27+is+not+supported+for+this+API+version.%0D%0ATrace+ID%3a+2eb4b948-c1cd-4390-b33f-8ec3c1547556%0D%0ACorrelation+ID%3a+a1a290a0-60cb-40d6-aef1-2a8072460ad8%0D%0ATimestamp%3a+2016-06-06+13%3a03%3a44Z "

Could you please let me know whats the solution for this

from onedrive-texteditor-js.

JuanPuebla avatar JuanPuebla commented on June 13, 2024

I have the same problem with office365 acconts. The file picker only works for normal outlook.com account.
When using office365 accounts we also get the following error:

Failed to load resource: the server responded with a status of 401 (Unauthorized)
[OneDriveSDK Error] missing windowState from picker response

from onedrive-texteditor-js.

daboxu avatar daboxu commented on June 13, 2024

hi @JuanPuebla , would you mind share the 401 HTTP Request and Response?

from onedrive-texteditor-js.

JuanPuebla avatar JuanPuebla commented on June 13, 2024

Hi,

Any news on this?

Thanks

Juan

from onedrive-texteditor-js.

dbayonacode avatar dbayonacode commented on June 13, 2024

I am wondering if it is possible to use the file picker without triggering the authentication dialog. I would like to sign in in code and as a transparent process to the user. Does anybody know a way to do it? I need to use the file picker for OneDrive for business.

from onedrive-texteditor-js.

RamenJunkie avatar RamenJunkie commented on June 13, 2024

After registering an application is there something that needs done to connect the application to the code? In the past I've done some things with say, the Twitter API, and it needed Consumer Keys and such. There doesn't seem to be any thing I've seen mentioning adding any sort of keys or connections to the local files.

from onedrive-texteditor-js.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.