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

Issue with redirect URL #17

Open
jstoppa opened this issue Aug 26, 2022 · 2 comments
Open

Issue with redirect URL #17

jstoppa opened this issue Aug 26, 2022 · 2 comments

Comments

@jstoppa
Copy link

jstoppa commented Aug 26, 2022

I'm trying to connect to an environment using OAuth and I'm getting the error below because localhost doesn't match one of the redirect URIs. Is there any work around in the Dataverse Linqpad Driver to avoid having to configure localhost as one of the redirect URIs?
image

@rajyraman
Copy link
Owner

@jstoppa - Try adding the redirect URL http://localhost to the App Registration. It looks like it is missing (if you are not using Microsoft App Registration 51f81489-12ee-4a9e-aaae-a2591f45987d). The other option is to use Azure method if you are using Azure CLI and the same account to access both Azure and Power Platform.

image

@jstoppa
Copy link
Author

jstoppa commented Jul 24, 2023

thanks, would you consider adding a parameter in the connection details to populate the redirect parameter, I guess is this line below. I'm happy to create a PR

"OAuth" => $"AuthType=OAuth; Url={EnvironmentUrl}; ClientId={ApplicationId}; RedirectUri=http://localhost; LoginPrompt=Auto; TokenCacheStorePath={Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}; RequireNewInstance=true",

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

2 participants