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

feat(api): add JWT authentication #281

Merged
merged 10 commits into from
Jun 22, 2022
Merged

feat(api): add JWT authentication #281

merged 10 commits into from
Jun 22, 2022

Conversation

DaughterOfMars
Copy link
Collaborator

No description provided.

* Initial jwt attempt

* Better error handling. Correct casing for bearer token. Only apply auth to api endpoints and move login to base uri. Fix login info json. Add exp claim to provided jwt.

* Sort

* fix feature gating

* config jwt expiration

* Accept passwords for login instead of hash and configure salt

* Add hex dep to api feature

* Remove unnecessary clippy tag

* Little cleanup to login route
bin/inx-chronicle/config.template.toml Outdated Show resolved Hide resolved
bin/inx-chronicle/config.template.toml Show resolved Hide resolved
bin/inx-chronicle/src/api/auth.rs Outdated Show resolved Hide resolved
bin/inx-chronicle/src/api/config.rs Outdated Show resolved Hide resolved
bin/inx-chronicle/src/api/error.rs Show resolved Hide resolved
bin/inx-chronicle/src/launcher.rs Outdated Show resolved Hide resolved
bin/inx-chronicle/config.template.toml Show resolved Hide resolved
bin/inx-chronicle/src/api/config.rs Outdated Show resolved Hide resolved
bin/inx-chronicle/src/api/config.rs Outdated Show resolved Hide resolved
bin/inx-chronicle/src/api/config.rs Outdated Show resolved Hide resolved
@grtlr grtlr linked an issue Jun 21, 2022 that may be closed by this pull request
Alex6323
Alex6323 previously approved these changes Jun 22, 2022
Alex6323
Alex6323 previously approved these changes Jun 22, 2022
grtlr
grtlr previously approved these changes Jun 22, 2022
@grtlr grtlr merged commit 6510cb1 into iotaledger:main Jun 22, 2022
@DaughterOfMars DaughterOfMars deleted the main-jwt branch July 14, 2022 15:15
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.

Provide JWT authentication for the API
3 participants