| 37 | context.set_details('Method not implemented!') |
| 38 | |
| 39 | class PasswordCredentialsTokenProvider(cells_auth_pb2_grpc.PasswordCredentialsTokenServicer): |
| 40 | def PasswordCredentialsToken(self, request, context): |
| 41 | print("Returning here") |
| 42 | return cells_auth_pb2.PasswordCredentialsTokenResponse( |
| 43 | AccessToken="thisisanaccesstoken", |
| 44 | IDToken="thisisanidtoken", |
| 45 | RefreshToken="thisisarefreshtoken", |
| 46 | Expiry=1000, |
| 47 | ) |
| 48 | |
| 49 | class UserProvider(cells_idm_pb2_grpc.UserServiceServicer): |
| 50 | def SearchUser(self, request, context): |