Skip to content

ClientBuilder should not require redirectUri #31

@VictorioBerra

Description

@VictorioBerra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions