Merge lp:~mardy/account-plugins/microsoft-graph into lp:~gary-wzl77/account-plugins/onedrive_provider
Proposed by
Alberto Mardegan
Status: | Merged |
---|---|
Merged at revision: | 181 |
Proposed branch: | lp:~mardy/account-plugins/microsoft-graph |
Merge into: | lp:~gary-wzl77/account-plugins/onedrive_provider |
Diff against target: |
50 lines (+9/-8) 2 files modified
data/providers/microsoft.provider.in.in (+1/-1) qml/microsoft/Main.qml (+8/-7) |
To merge this branch: | bzr merge lp:~mardy/account-plugins/microsoft-graph |
Related bugs: | |
Related blueprints: |
Azure and Cloud authentication lead programming
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary.Wang | Approve | ||
Review via email:
|
Description of the change
Use the microsoft graph API to get the display name
This change allows us to retrieve the user email, with a fallback to the user display name.
The Graph API to get the user info is documented here:
https:/
OneDrive is also accessible via the graph API (it looks like the endpoints and parameters are the same, just the base address is different), as documented here:
https:/
To post a comment you must log in.
Thanks mardy for this change.
However, I can't manage to login with my account anymore with this change.
I'd say access token is obtained, but error occurs when retrieving the uesr email address by using graph API.
Here is the log: ERROR:PlatformK eyboardEvent. cpp(84) ] Not implemented reached in static bool blink:: PlatformKeyboar dEvent: :currentCapsLoc kState( ) ERROR:PlatformK eyboardEvent. cpp(84) ] Not implemented reached in static bool blink:: PlatformKeyboar dEvent: :currentCapsLoc kState( ) ERROR:PlatformK eyboardEvent. cpp(84) ] Not implemented reached in static bool blink:: PlatformKeyboar dEvent: :currentCapsLoc kState( ) :disconnect: Unexpected null parameter icationToken" ,^M ca3c-4bfc- 84bf-58ba8b6ef0 a1",^M 04T06:27: 10"^M
...
qml: Loading changed
qml: Loading changed
qml: Loading changed
[1104/062626:
[1104/062628:
[1104/062631:
qml: Loading changed
qml: Loading changed
qml: Loading changed
qml: Loading changed
qml: Loading changed
qml: Authenticated; getting cookies
QObject:
qml: Request destroyed!
qml: error: 401
qml: response text: {^M
"error": {^M
"code": "InvalidAuthent
"message": "CompactToken parsing failed with error code: -2147184118",^M
"innerError": {^M
"request-id": "fd40b8ca-
"date": "2016-11-
}^M
}^M
}