bifunctor
KKinde
•Created by bifunctor on 1/27/2025 in #💻┃support
How to implement the token based authentication in GRPC interceptor with Python SDK?
I want to implement token-based authentication in a gRPC interceptor using the Python SDK.
In the interceptor of a gRPC server’s request flow, I aim to validate the bearer token. Below is the code I have implemented so far:
Questions:
1. How can I evaluate the validity of the bearer token?
Kinde provides https://docs.kinde.com/developer-tools/sdks/backend/python-sdk/. However, I haven't found the method JWTverifiy as it exists for https://docs.kinde.com/developer-tools/sdks/backend/express-sdk/#verify-jwt
2. How can I test the implementation with a session token?
I created a test user in the user management section but I am uncertain about how to obtain a session token for the user to include in the request for authentication. It seems the Python SDK (https://github.com/kinde-oss/kinde-python-sdk) does not directly provide this functionality.
3 replies