Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

[DOCS] ERROR: Code: Unimplemented #55

Open
makorne opened this issue Jan 31, 2022 · 2 comments
Open

[DOCS] ERROR: Code: Unimplemented #55

makorne opened this issue Jan 31, 2022 · 2 comments
Assignees
Labels
dev::docs Documentation only changes

Comments

@makorne
Copy link

makorne commented Jan 31, 2022

Hi!

Thank you for your interesting project!

I try to play with it but always get errors.

From your Help:

cargo watch --exec "run | bunyan"

error: `cargo run` could not determine which binary to run. Use the `--bin` option to specify a binary, or the `default-run` manifest key.
available binaries: fip_api, fip_at, fip_jwks, fip_rt, fip_user

And if I set one of these binaries -

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:8080 fip.api.auth.Auth/Login

ERROR:
  Code: Unimplemented
  Message: 

How to get a good response?

@makorne makorne added the dev::docs Documentation only changes label Jan 31, 2022
@makorne
Copy link
Author

makorne commented Feb 1, 2022

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-W52YFCiM2zHhzAGYJ199sDO6gY1qQzUDNrOGKjR1iyxHVvVh7YcNyzv57pUC1_MT5kJxt5wbWNNZ-PdLqN_049TBxSLO5kjwDXOg2KjGVtuoYSv-GECtUrPkmrghRB7-6WtXq9s_-ZRT8hwH9PXZBFSNneCsSYSbuixQwlgRy61OLuRkV-dR85Q_zF4",
  "rt": "13BC7917-A1B9-44D7-8A94-21492773E731"
}

And if use JWT value from "at" in the request below:

grpcurl \
    -H 'authorization: JWT 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-W52YFCiM2zHhzAGYJ199sDO6gY1qQzUDNrOGKjR1iyxHVvVh7YcNyzv57pUC1_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?

@smhmayboudi
Copy link
Owner

I will check it. Thanks for your notice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dev::docs Documentation only changes
Projects
None yet
Development

No branches or pull requests

2 participants