juspay/hyperswitch

[REFACTOR] Use `MerchantJwtWithProfileId` instead of `MerchantJwt` in Authentication data

Open

#5937 aperta il 18 set 2024

Vedi su GitHub
 (13 commenti) (0 reazioni) (1 assegnatario)Rust (4676 fork)batch import
A-usersC-refactorgood first issuehacktoberfest

Metriche repository

Star
 (42.690 star)
Metriche merge PR
 (Merge medio 6g 22h) (213 PR mergiate in 30 g)

Descrizione

Feature Description

We have introduced MerchantJwtWithProfileId to the AuthenticationData enum. The new variant includes both a profile_id and a non-optional user_id field, improving upon the older MerchantJwt variant. The goal of this issue is to replace all instances of MerchantJwt with MerchantJwtWithProfileId.

You can find the location of MerchantJwt here: https://github.com/juspay/hyperswitch/blob/1ff66a720b29a169870b2141e6ffd585b4d5b640/crates/router/src/services/authentication.rs#L128 MerchantJwtWithProfileId is located just under it.

Possible Implementation

  • Refactor the existing codebase to replace occurrences of MerchantJwt with MerchantJwtWithProfileId.
  • Ensure that merchant_id, user_id, and profile_id (where necessary) are properly handled in the updated variant.

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Submission Process:

  • Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
  • Once assigned, submit a pull request (PR).
  • Maintainers will review and provide feedback, if any.
  • Maintainers can unassign issues due to inactivity, read more here.

Refer here for Terms and conditions for the contest.

Guida contributor