Login outlook.com and microsoft.com

Hi,

when I use the TAdvLiveContacts, I can connect to my account.
With the same login-data I can not login with the
TAdvOutlookContacts.
On the other side when I go to "microsoft.com" I can use the same
login like at "outlook.com" and it works.
Did I make an mistake? Did I understand something wrong?
Or is the service from microsoft in fact currently down
(like the message told)?
On the other side, when I can make this work: thanks a lot for
extend the (really small) TAdvLive-Components with the
TAdvOutlook-Components! ;-)

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Did you request a new application key & secret for use with the TAdvOutlookContacts?
This is required by Microsoft.

In
https://account.live.com/developers/applications/index
and
https://apps-dev.dev.microsoft.com/#/appList
I have the app registred.
With the key for MS Live I can gat access to my outlook-profile, but with the key for
MS Outlook I can not sign in. There is the login-screen (until now I have no token,
so there will always come the login-page) but I doesn't accept my login for outlook.com.
It says that the service is temporarily not available.
In german:
---
Ihre Anforderung kann nicht abgeschlossen werden
F?r das Microsoft-Konto sind technische Probleme aufgetreten. Bitte versuchen Sie es sp?ter noch mal.
---
I have to remak, without the TMS-Help-Page I would not be able to find the page to
register ... the microsoft-page is simply confusing.

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Hi,


The error message you are seeing usually indicates there is something wrong with your app configuration.
Can you please make sure you have added the "Web" platform and have provided a valid callback URL in the "Redirect URIs" field?

Hi,
I thought I have done so, but it still doesn't work.
I've also tried to uncheck "Allow implicit flow" ("Impliziten Fluss zulassen"), but it doesn't work.
I've make some screenshots, so you can look for yourself ... I don't see where the problem is.
Look here:
http://www.hcbs.de/tmp/Test1.jpg
and here
http://www.hcbs.de/tmp/Test2.jpg

I'm so sorry that I didn't get it and need so much help! :-(
But maybe it can help others!

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Your settings seem to be correct.

However I have tried to create a new app myself and I am now also receiving the error message.
I'm currently investigating this issue.
Unfortunately It is likely that the issue lies with the Outlook API authentication process, if so we'll have to wait until Microsoft resolves the problem.

I found something:
Here https://dev.outlook.com/RestGettingStarted
there is a text that says, that I have to upgrade my microsoft-outlook-account to use the "new rest-api".
I have now click on the register-button so I wait for what comes.
I inform you if I gat some new information!

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

In CloudCustomOutlook you didn't use the CallbackURL which should be set in the App-Property.
I think that is a mistake, there is always "https://tmssoftware.com/site" as Callback-URL but I did not set this page as the redirect-URL when register my app.
I change your code to something similar as:
---
function TCloudCustomOutlook.GetCallBackURL() : String;
begin
  if (App <> nil) AND (Assigned(App)) AND (App.CallBackURL <> '') then
  Begin
    Result := App.CallBackURL;
  End Else
  Begin
    Result := Callback_URL; // default
  End;
end;
---
I think this would be a useful way.

But I did not get an access until now, so ...

Greetings from Papenburg, Germany
 Gabriele Hillebrandt



Your remark is correct.
This issue was already fixed internally and the update will be included with the next release of the TMS Cloud Pack.

Thank you for notifying us.

We are currently investigating if a solution can be found for the authentication issues with newly registered apps for the Outlook API.


Ok, thanks for that!

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Until today, I can not get this to work.
Can someone help?
This: https://dev.outlook.com/restapi/getstarted
and this: http://www.tmssoftware.biz/Download/Manuals/TMS%20Cloud%20Pack.pdf
and this: http://www.tmssoftware.com/site/cloudkey.asp
doesn't help me enought!
I have a registred app, but when I get the login-Windows
there is no way for me to log in.
Tryed Microsoft-Live-Account (created for tests), Microsoft-Buisness-Account (don't want to use it!)

Don't know how to move on.

I can confirm that this is still an issue.


When using recently registered apps for the Outlook API the following message is displayed after logging in: 

We're unable to complete your request
Microsoft account is experiencing technical problems. Please try again later.

Unfortunately we currently have no solution available for this issue. It seems this is caused by the Microsoft Outlook API which we have no control over.

I've found something!

In your Help-Page
http://www.tmssoftware.com/site/cloudkey.asp
you write, that the registratin must be on
https://apps-dev.dev.microsoft.com/
I've done so, but the link, which was created doesn't work.
After talking to nerly every Microsoft-Hotline ("I can't help but try XYZ")
I talk to someone in the MSDN-Forum and while I want to describe
the problem I found out, that there is a page that looks really similar!
On
https://dev.outlook.com/restapi/getstarted
there is the link to
https://apps.dev.microsoft.com/
where I can add my software as well.
I do so, and don't get the error "Unable to complete request..." but the
page to confirm the App for the choosen account!

You should correct this ... I will try the new options and inform you here
if it works with this!

But the main question is: Why does no one found this problem, except me?

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Hi,


Thank you for notifying.
It seems there are indeed 2 different URLs where you can register an app for the Outlook API.
However I've tested a newly created App at "https://apps.dev.microsoft.com/" and I'm still seeing the same error when trying to authenticate.

Hi,

that's exactly, what I want to say (sorry for my english)!
You have to create it on
https://apps-dev.dev.microsoft.com/
and NOT on
https://apps.dev.microsoft.com/
try it and it should go way better,
I busy for another request, but I try it next week!

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Hi,

I got stuck!
I do not get an acess-token in
TCloudOutlookWin.NavigateComplete2
so the login doesn't work.

Now it's your turn! I've put so much time in this project, but it doesn't work!

Greetings from Papenburg, Germany
 Gabriele Hillebrandt

Unfortunately I have not been able to reproduce this issue.
If the Authentication process succeeds the access token is retrieved correctly.

Try to enable logging and provide the log file so we can inspect what happens in the communication.

Hi,

here the log:
---
20160607T120826:HTTPS GET: https://outlook.office.com/api/v2.0/me
20160607T120827:HTTPS GET RESULT:
20160607T120905:HTTPS POST: login.microsoftonline.com/common/oauth2/v2.0/token
20160607T120905:HTTPS POST RES:400
20160607T120905:HTTPS GET: https://outlook.office.com/api/v2.0/me/contacts?$top=100&$skip=0
20160607T120906:HTTPS GET RESULT:
20160607T120908:HTTPS GET: https://login.live.com/oauth20_logout.srf
20160607T120909:HTTPS GET RESULT:
20160607T121125:HTTPS GET: https://outlook.office.com/api/v2.0/me
20160607T121128:HTTPS GET RESULT:
20160607T121144:HTTPS POST: login.microsoftonline.com/common/oauth2/v2.0/token
20160607T121144:HTTPS POST RES:400
20160607T121144:HTTPS POST RESULT:{"error":"invalid_request","error_description":"AADSTS90019: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: 7e71a148-b0ed-4856-9ae4-c643b205a9ff\r\nCorrelation ID: d8280a77-7076-40ef-b19f-abbf6a484d07\r\nTimestamp: 2016-06-07 10:12:33Z","error_codes":[90019],"timestamp":"2016-06-07 10:12:33Z","trace_id":"7e71a148-b0ed-4856-9ae4-c643b205a9ff","correlation_id":"d8280a77-7076-40ef-b19f-abbf6a484d07"}
20160607T121144:HTTPS GET: https://outlook.office.com/api/v2.0/me/contacts?$top=100&$skip=0
20160607T121144:HTTPS GET RESULT:
20160607T121148:HTTPS GET: https://login.live.com/oauth20_logout.srf
20160607T121148:HTTPS GET RESULT:
---
It seems that the Microsoft-Account I used to register the app is not valid ...
Why am I able to register an app with a account that is not valid?
Where/How/... can I create a valid Microsoft-Account?
I've got so much problems with this! Is there any idiot-proof how-to beginning
with "install windows on pc"? :-(