-
Notifications
You must be signed in to change notification settings - Fork 8
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
ClientBuilder should not require redirectUri #31
Comments
I am not opposed to this, but here is some history and notes for anyone that looks at this If we decide to change this, we'd need to add it to both the "create request" and "exchange token" calls, and I don't think we'd have any way to ensure it's the same - thus transferring that burden to the developer + introducing a new failure case. |
This is helpful information. As someone who is very familiar with OAuth2/OIDC I also thought it was odd that Redirect URLs did not need to be whitelisted on the Duo Admin side as you would normally for interactive clients. |
As it currently is, in our app's implementation at least, I already supply the
So we already supply the At one point I tried not supplying Sorry if I've completely misunderstood! |
I need to use a different RedirectUri in my app for different pages/features, and I am forced to define it when I call
new ClientBuilder(...)
.Due to this, I cannot create an interface that I can inject and mock as shown in the example with
IDuoClientProvider
.Is there a way we can make the RedirectUri a parameter on
GenerateAuthUri()
? Would that not make more sense in general?Detailed Description
See above.
Use Case
I have various pages in my ASPNET Core Razor Pages app that require the user to verify their identity via a Duo push, each feature/vertical slice of my app should have their own callback page.
Workarounds
None yet, working on it now. Maybe a central callback page that takes its own redirectUri... or a keyed service, each page will have a key that resolves the client that is built to target a specific redirectUrl.
The text was updated successfully, but these errors were encountered: