Skip to content

v8 Beta Feedback #915

@Hawxy

Description

@Hawxy

Hiya,
I'm the maintainer of the https://github.com/Hawxy/Auth0Net.DependencyInjection package that's used by a significant number of Auth0.Net consumers. Looking at v8, I have some feedback on some improvements that could be made:

  1. Some of the response nullability seems to be a bit off. The UserResponseSchema has UserId as nullable which I'm not sure is even possible? There might be something wrong with the annotations in the schema document this was generated from.

  2. ManagementClient isn't a wrapper at the moment, it's more of a reimplementation of ManagementApiClient. It doesn't implement the IManagementApiClient interface (which is a backwards step over v7), decorate the client, or inherit from the client. Maybe something to consider to improve ergonomics & testability.

  3. The TokenProvider func option isn't very usable - it only exposes a sync codepath which isn't acceptable in the current year. The implementation of the token provider itself also does a lot of sync-over-async which is simply going to harm performance. I'd suggest exposing an ITokenProvider interface with a ValueTask-returning function to users and allow them to implement their own type. It's an easy change that you can see on the branch here: Hawxy@33aeb82

Otherwise this a good direction and a welcome improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions