Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Error on _context.AcquireToken "This method overload is not supported by 'https://adfs.xxxxxx/adfs/oauth2/authorize/'"

$
0
0

Hi

Could you please help with the following issue

I am using this method

        public AuthenticationResult AcquireToken()
        {
            if (_config != null && (!string.IsNullOrEmpty(_config.Username) && _config.Password != null))
            {
                UserCredential cred = new UserCredential(_config.Username, _config.Password);

                return _context.AcquireToken(_config.ServiceUrl, _config.ClientId, cred);
             }
            return _context.AcquireToken(_config.ServiceUrl, _config.ClientId, new Uri(_config.RedirectUrl),
                PromptBehavior.Auto);
        }

It's working fine on one environment, but failing when I try to login on different test environment.

The error is this

  Message "This method overload is not supported by 'adfs.xxxxxx/.../authorize'" string

Could you please help ? Do I need to change something ?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images