Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ws-Trust authentication has been deprecated #121

Closed
janeliasprague opened this issue Jul 3, 2022 · 1 comment
Closed

Ws-Trust authentication has been deprecated #121

janeliasprague opened this issue Jul 3, 2022 · 1 comment

Comments

@janeliasprague
Copy link

Hi, I've been using your library for years now, but some security error occured and I dont know how to solve it.

My application shows this error:

AlexaCRM\CRMToolkit\SoapFault #s:Sender

An error occurred when processing the security tokens in the message:You are using Ws-Trust authentication which has been deprecated and no longer supported in your environment. Please use OAuth2.0 authentication and refer https://aka.ms/dvwsdep.

My service is created using following settings:

use AlexaCRM\CRMToolkit\Client as OrganizationService;
...
        $this->options = [
            'serverUrl' => self::URL,
            'username' => self::USER,
            'password' => self::PASSWORD,
            'authMode' => 'OnlineFederation',
        ];

        $serviceSettings = new Settings( $this->options );
        $serviceSettings->ignoreSslErrors = true;
        
        $this->service = new OrganizationService( $serviceSettings );

Could you please help me, how to fix it? Thank you!

@georged
Copy link
Contributor

georged commented Jul 4, 2022

@janeliasprague

have a look at (now closed) issue #118 - there you'll find the sample code to resolve the issue.

HTH
George

@georged georged closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants