Comments (2)
Ok, I start all binaries separately and test commands from Help.
grpcurl \
-d '{"username":"smhmayboudi","password":"smhmayboudi"}' \
-import-path fip_at/proto \
-import-path fip_api/proto \
-import-path fip_jwks/proto \
-import-path fip_rt/proto \
-import-path fip_user/proto \
-plaintext \
-proto api_auth.proto \
127.0.0.1:50050 fip.api.auth.Auth/Login
Response:
{
"at": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IkFEODZENEQzLUEzNkMtNDkyNC04NDJDLTA0RjhCNzRBMjBDQiJ9.eyJhdWQiOiJmaXBfYXBpIiwiZXhwIjoxNjQ3MjkwNTQ3LCJpYXQiOjE2NDM2OTA1NDcsImlzcyI6ImZpcF9hcGkiLCJqdGkiOiI0RjA5M0NEMy01N0U5LTQ4NDMtODg5MC1DRDA4QzA2MzdDRTAiLCJuYmYiOjE2NDM2OTA1NDcsInN1YiI6IkU1RDg2RTFELTMxQTQtNDk2NC05ODgxLUYxNjBGQzVCMTA3MyJ9.Xyonsqj1LRKhz5ABsNrLeunNGOJwU9uqrbHad4iL6hYKq3oVqDWWexqTvV-TvxNEIIv0Dt92aJGS-1JkxFwrzGPgTnK3xKTwKqoI6UTzNC_keJ9Cv018y_KAVBohBpFil30xT042zLluRQPQE26LNZ1dtjeM1Azu0slEcYIAMectPZijNLKYIUT_cMCMCfwZ1_utvbK-sZJwIRnXHGT0s59cogciRFFIVuMSRf8Ez2KFz-23CbzTXTdSWTDLW3ccQuDUkiO9zlDX_Tn4eIdG_qGER1AP3kGMc-keSRX_Pp2t2HR8KQhRTk-3aWmcKqpAb5jNQkUF7AaRuPnvicFC8AZd-DvGwquUZAaI5CHW7c7r6hh_Jbm7SgLmTVYnc1HrjTUA0ty_d8BKRv5za_EtMJgOeNBHmzkCUAauFn4HFz_Q_yiEnCC5XAcJjH9XdYt-34PvdKR9Pu1Z-iwVN9GjGKGiYD_2NlEOmtBkR3C973LDfG1-W52YFCiM2zHhzAGYJ199sDO6gY1qQzUDNrOG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zHhzAGYJ199sDO6gY1qQzUDNrOGKjR1iyxHVvVh7YcNyzv57pUC1_MT5kJxt5wbWNNZ-PdLqN_049TBxSLO5kjwDXOg2KjGVtuoYSv-GECtUrPkmrghRB7-6WtXq9s_-ZRT8hwH9PXZBFSNneCsSYSbuixQwlgRy61OLuRkV-dR85Q_zF4' \
-d '{"id":"E5D86E1D-31A4-4964-9881-F160FC5B1073"}' \
-import-path fip_api/proto \
-import-path fip_at/proto \
-import-path fip_jwks/proto \
-import-path fip_rt/proto \
-import-path fip_user/proto \
-plaintext \
-proto api_api.proto \
127.0.0.1:50050 fip.api.api.Api/FindOne
Response:
ERROR:
Code: Unauthenticated
Message:
But if I use the old JWT from your Help page
Response:
{
"id": "E5D86E1D-31A4-4964-9881-F160FC5B1073"
}
Why fresh JWT sent by login does not work?
from fip.
I will check it. Thanks for your notice.
from fip.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fip.