Stuck between two errors in an Azure OAuth2 token request

后端 未结 3 811
不知归路
不知归路 2021-01-04 18:25

I am implementing an OAuth2 provider for OWIN and Azure Active Director. FWIW, at this time the OpenId Connect option doesn\'t fit the requirements for this work.

I

3条回答
  •  梦谈多话
    2021-01-04 19:13

    I had the same problem, i just wanted to implement a user-login.

    After trying 1000 things (with this post amongst others) i found out that i can use the Microsoft.Azure.ActiveDirectory-id as resource paramter. On this way i don't have to create an second app.

    http://blogs.msdn.com/b/besidethepoint/archive/2012/10/23/getting-started-with-azure-active-directory.aspx

    nameValuePairs.add(new BasicNameValuePair("resource", "00000002-0000-0000-c000-000000000000"));
    

    and got the token

    UPDATE:

    the azure support suggested me to use https://graph.windows.net/ :

    nameValuePairs.add(new BasicNameValuePair("resource", "https://graph.windows.net/"));
    

提交回复
热议问题