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

Question: OAuth connections string example for on-premise backend service #4

Closed
skfd opened this issue Mar 18, 2020 · 3 comments
Closed

Comments

@skfd
Copy link

skfd commented Mar 18, 2020

I found a success story for this scenario, but it involves doing manual two-step retrieval of the token. I assume SDK will do it internally. But I don't think there is an example of connection string for OAuth for on-premise backend service.

Could you help us with that?

@MattB-msft
Copy link
Member

You can do this with this client on full framework .net
and example of that connection string is here: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/xrm-tooling/use-connection-strings-xrm-tooling-connect#oauth-using-current-logged-in-user-with-fall-back-ux-to-prompt-for-authentication

if your running on .net core, you must use one the S2S flows or roll your own token acquire flow using the constructor for the CdsServiceClient that accepts a function to retrieve tokens.
if that is what your trying to do I can provide a short function example if you need, we do not have the formal samples completed yet.

@MattB-msft
Copy link
Member

Going to close it as, given that you didn't respond, I assume it worked for you

@senj
Copy link

senj commented Mar 30, 2020

if your running on .net core, you must use one the S2S flows or roll your own token acquire flow using the constructor for the CdsServiceClient that accepts a function to retrieve tokens.
if that is what your trying to do I can provide a short function example if you need, we do not have the formal samples completed yet.

Hi @MattB-msft , can you please provide the example for me?
We want to use the package against on-prem dynamics CRM 2015, you think this will work?

Currently we are using Microsoft.CrmSdk.CoreAssemblies but want to migrate to AKS with linux containers so we need .net core support, or do you have another idea?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants