PHP Classes

CRM Dynamics 2016 online

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  Learn with a PHP OAut...  >  All threads  >  CRM Dynamics 2016 online  >  (Un) Subscribe thread alerts  
Subject:CRM Dynamics 2016 online
Summary:Password grant_type not working
Messages:5
Author:Guido
Date:2016-04-11 15:32:42
 

  1. CRM Dynamics 2016 online   Reply   Report abuse  
Picture of Guido Guido - 2016-04-11 15:32:42
Does anybody have experience with MS CRM 2016?
I have azure set up.
I use this class with the grant_type "authorization_code" and get redirected to the login page, this looks ok.
But I want to use the grant_type "password" to use it in a cronjob.
I tried lots of things but keep getting "OAuth server did not return the access token". Any help would be appreciated.

  2. Re: CRM Dynamics 2016 online   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-04-11 20:26:22 - In reply to message 1 from Guido
grant_type password is supported. Can you post a basic example script to show what you are doing, so I can try to reproduce?

  3. Re: CRM Dynamics 2016 online   Reply   Report abuse  
Picture of Guido Guido - 2016-04-13 15:52:28 - In reply to message 2 from Manuel Lemos
Thanks, it is working now, it wants the client_id and resource (the crm online url) in the message body.

  4. Re: CRM Dynamics 2016 online   Reply   Report abuse  
Picture of M.Abulsoud M.Abulsoud - 2016-11-07 09:08:21 - In reply to message 1 from Guido
Hello,

How to get the code for this class?

  5. Re: CRM Dynamics 2016 online   Reply   Report abuse  
Picture of M.Abulsoud M.Abulsoud - 2016-11-07 09:18:29 - In reply to message 1 from Guido
I have same problem I need to authenticate to CRM 2016 WEB API, what thing I need to do in order to achieve this? CRM party given that when I hit this link https://internal.crm.org.com:5443/appname/api/data/v8.0/ it redirect me to adfs server with this link https://adfs.crm.org.com/adfs/ls/?wa=wsignin1.0&wtrealm=https://internal.crm.org.com:5443/&wctx=rm=1&id=4d65271b-682e-44bb-80ce-ed44b5370ed7&ru=%2forgTechnicalTraining%2fdefault.aspx&wct=2016-11-02T07:15:47Z&wauth=urn:federation:authentication:windows and popup a window to fill the credential to got authenticated?