Better handling of token lifetime.
- In C++, we need a constant for the max lifetime. - In C, make sure that we crop the lifetime in the credentials object itself and not just later during the creation of the token. This will allow the refresh to occur based on the actual token lifetime as opposed to the one from the user (which may be cropped).
Showing
- include/grpc++/security/credentials.h 6 additions, 2 deletionsinclude/grpc++/security/credentials.h
- src/core/lib/security/credentials/jwt/jwt_credentials.c 7 additions, 0 deletionssrc/core/lib/security/credentials/jwt/jwt_credentials.c
- test/core/security/credentials_test.c 40 additions, 0 deletionstest/core/security/credentials_test.c
Please register or sign in to comment