tomprogrammer / scram Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the Salted Challenge Response Authentication Mechanism (SCRAM)
License: MIT License
An implementation of the Salted Challenge Response Authentication Mechanism (SCRAM)
License: MIT License
Have you considered replacing ring? I keep running into all sorts of issues with this library every now and then because of its dependency on ring. For example, it breaks with every major ring release.
It looks like you forgot to release after 32b5170.
Any chance we can upgrade ring
to 0.13.0-alpha
? The older versions are broken.
There can be an index out of bounds panic in the code responsible for parsing the server messages.
The length of the input is checked for the first token parsed, but not for the following tokens. Therefore slicing the input can panic. The faulty code is in the function parse_server_first
.
After:
Can you add supports of :
"When using the SASL SCRAM mechanism, the SCRAM-SHA-256-PLUS variant SHOULD be preferred over the SCRAM-SHA-256 variant, and SHA-256 variants [RFC7677] SHOULD be preferred over SHA-1 variants [RFC5802]".
SCRAM-SHA-1(-PLUS):
-- https://tools.ietf.org/html/rfc5802
-- https://tools.ietf.org/html/rfc6120
SCRAM-SHA-256(-PLUS):
-- https://tools.ietf.org/html/rfc7677 since 2015-11-02
-- https://tools.ietf.org/html/rfc8600 since 2019-06-21: https://mailarchive.ietf.org/arch/msg/ietf-announce/suJMmeMhuAOmGn_PJYgX5Vm8lNA
SCRAM-SHA-512(-PLUS):
-- https://tools.ietf.org/html/draft-melnikov-scram-sha-512
SCRAM-SHA3-512(-PLUS):
-- https://tools.ietf.org/html/draft-melnikov-scram-sha3-512
https://xmpp.org/extensions/inbox/hash-recommendations.html
-PLUS variants:
LDAP:
HTTP:
2FA:
IANA:
Linked to:
After Authenticated
, I have to save authcid
and authzid
for deciding which actions the user are allowed to perform.
Currently, there is no way to get back authcid
and authzid
from server::ClientFinal
since the fields are all private. And also can't call parse_client_first()
to get those info since the function is also private.
I suggest provide function for server::ClientFinal
to access authcid
and authzid
.
Just swinging by to give you a heads up that I made a saslprep implementation: https://crates.io/crates/stringprep
Since #10 is now merged, may you please push a new release? I had already updated the version. All you need is a cargo publish
and tagging this repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.