Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

sharing user context between your microservices

Pragya Keshap answered on February 7, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Bounded contexts and microservices #

  • sharing user context between your microservices

    0

    There are many ways how you can preserve the user identity in downstream microservices. Here are two of them:

    1) Use Spring Session. It gives you the ability to distribute a user session across microservices by simply adding a dependency.

    2) Pass the original user's token to downstream calls and have the same Spring Security configuration there.

    In both cases, you will be able to get a username from SecurityContextHolder.

    https://security.stackexchange.com/questions/242881/propagating-user-context-between-microservices-secured-with-m2m-jwt-tokens

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 07 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.