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

Use -ForceOAuth - update example text #500

Open
2ATCaroline opened this issue Apr 6, 2022 · 4 comments
Open

Use -ForceOAuth - update example text #500

2ATCaroline opened this issue Apr 6, 2022 · 4 comments

Comments

@2ATCaroline
Copy link

2ATCaroline commented Apr 6, 2022

You want to update the example as WS-trust authentication is deprecated to:

(Online - use oAuth and XrmTooling Ui by providing your UPN and the enviroment url)
connect-crmonline -Username "[email protected]" -ServerUrl .crm.dynamics.com -ForceOAuth

@seanmcne
Copy link
Owner

seanmcne commented Apr 6, 2022

Hi @2ATCaroline thanks for the suggestion! I was under the impression the XRM Tooling powershell connector library would default to oAuth but it looks like that might not be the case. I was thinking as an alternative we could ship an update that defaults to ForceOAuth for connect-CrmOnline.

@2ATCaroline
Copy link
Author

Hi @seanmcne,
Even better! Or both (for now) :)

@MattB-msft
Copy link
Collaborator

Its coming, next drop of the lib will do it automatically.
We are pending a few updates for new GEO’s

Thanks

@seanmcne
Copy link
Owner

@MattB-msft - is there a graceful way now (in the latest update) to have the module attempt using oAuth and fallback to WS-Trust if it fails? Right now we're using a connectionstring to ensure consistent behavior of the connector but defaulting to WS-Trust. Can we change this to have a "try oAuth and fallback" or is this something we should attempt to handle within the module?

Thanks!

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

3 participants