Skip to content

Using HTTP Client for User Management #220

@hiranya911

Description

@hiranya911

In #60 we changed the user management code to use the auto-generated identity toolkit client instead of the HTTP client. This was a useful an interesting experiment that yielded some positive results in the short term. But I feel in the long run it has caused a couple of issues:

  1. The auto-generated clients are not updated regularly, preventing us from launching new APIs at the pace we want.
  2. We lose control over the transport layer, which makes it difficult to implement optimizations like retries in a single location.

Therefore, I'd like to consider going back to the HTTP client for user management. We can do this in steps:

  1. Refactor the user mgt code and implement the currently missing APIs (e.g. session cookie management) on top of HTTP client without changing the existing APIs.
  2. Incrementally migrate the existing user management APIs to also use the HTTP client.

@chemidy what do you think?

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