Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jwt #190

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Jwt #190

wants to merge 21 commits into from

Conversation

mdtrooper
Copy link
Contributor

Yes.

The JWT is coded into Martin. And it is runs fine.

Regards 🍻 .

@codecov
Copy link

codecov bot commented Feb 27, 2021

Codecov Report

Merging #190 (0eaf52e) into master (b998c17) will decrease coverage by 0.93%.
The diff coverage is 3.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
- Coverage   41.14%   40.20%   -0.94%     
==========================================
  Files          13       13              
  Lines        1541     1577      +36     
==========================================
  Hits          634      634              
- Misses        907      943      +36     
Impacted Files Coverage Δ
src/bin/main.rs 0.84% <0.00%> (-0.07%) ⬇️
src/server.rs 35.45% <0.00%> (-2.22%) ⬇️
src/config.rs 51.45% <37.50%> (-3.19%) ⬇️
src/lib.rs 34.58% <0.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b998c17...4e5e033. Read the comment docs.

@PawelBaranowski
Copy link

Hi @mdtrooper! This looks promising, but having read the code I believe it only supports authentication via token validation. Could we extend this solution to support authorization via claim values? My use case is to carry user's id or role in JWT claims in order to use these values to filter results.

@nyurik
Copy link
Member

nyurik commented Mar 11, 2023

@mdtrooper @PawelBaranowski this PR has been open for a while, but sadly has not received any attention. It seems fairly straightforward. Can we resume the discussion about this, maybe as part of an issue, to decide if 1) is this still relevant/needed, 2) how would we automate testing for this as part of CI

@PawelBaranowski
Copy link

@nyurik TBH I'm (sadly) no longer an active user of Martin. Also, Rust is not my world, so I'll probably be of little help here.

@mdtrooper
Copy link
Contributor Author

But...one question.

Martin was a project for a company. Urbica o Yandex?

@stepankuzmin
Copy link
Collaborator

Hi @mdtrooper 👋

Martin was created by Urbica.

@lefuturiste
Copy link

Hello, any updates on this?

@nyurik
Copy link
Member

nyurik commented Oct 27, 2023

@lefuturiste I would be OK to merge it if this PR would be updated and include unit or integration tests and some rudimentary docs. I have no knowledge of JWT, so I cannot really gauge how this would be used or tested, but if someone puts in the efforts to add support for it (and also clearly explains why it is needed), I'm all for it.

@lefuturiste
Copy link

@lefuturiste I would be OK to merge it if this PR would be updated and include unit or integration tests and some rudimentary docs. I have no knowledge of JWT, so I cannot really gauge how this would be used or tested, but if someone puts in the efforts to add support for it (and also clearly explains why it is needed), I'm all for it.

Okay fair enough, it need docs and tests. May be I can take a look, in my current use of martin, we would use it behind a nginx server with a JWT module so idk. But in anycase some sort of JWT should be implemented at the app level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants