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

Change redirectUri so it use the regex version #5

Open
MargretheR opened this issue Mar 28, 2022 · 2 comments
Open

Change redirectUri so it use the regex version #5

MargretheR opened this issue Mar 28, 2022 · 2 comments

Comments

@MargretheR
Copy link

        string redirectUri = string.Format($"http://127.0.0.1:{browser.Port}/desktop-callback");

or just
string redirectUri = string.Format($"http://127.0.0.1:{browser.Port}");

Native apps will get this default in developer portal wizard
^http://127.0.0.1\:\d{4,10}$

@SuperOfficeDevNet
Copy link
Contributor

There is no file or line reference. So you mean this line?

@MargretheR
Copy link
Author

Yes, so it's more similar to the WebApiClient login, using
// create a redirect URI using an available port on the loopback address.
// requires the OP to allow random ports on 127.0.0.1 - otherwise set a static port
var browser = new SystemBrowser();
string redirectUri = string.Format($"http://127.0.0.1:{browser.Port}/desktop-callback");

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