mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-10 08:07:08 -06:00
Add TODOs for planning
This commit is contained in:
@@ -7,6 +7,7 @@ RUN apt update && apt install -y g++-mingw-w64-x86-64
|
||||
|
||||
RUN rustup target add x86_64-pc-windows-gnu
|
||||
RUN rustup target add x86_64-unknown-linux-gnu
|
||||
# TODO: Add support for macOS
|
||||
# RUN rustup target add x86_64-apple-darwin
|
||||
|
||||
COPY ./demo ./
|
||||
|
||||
@@ -26,6 +26,7 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Use token to make request
|
||||
// Check the hash of the value
|
||||
let value_hash = sha2::Sha256::digest(key_data.value.as_bytes());
|
||||
let hash_match = hex::encode(value_hash) == key_data.value_hash;
|
||||
|
||||
@@ -46,6 +46,7 @@ const StatefulDemo = ({ class: className }: StatefulDemoProps) => {
|
||||
socket.close();
|
||||
};
|
||||
}, []);
|
||||
// TODO: Toasts
|
||||
const randomBits = (bits: number) =>
|
||||
Math.floor(Math.random() * 2 ** bits)
|
||||
.toString(16)
|
||||
|
||||
@@ -204,6 +204,11 @@ async fn main() {
|
||||
|
||||
let static_dir = StaticDir::new(["./public"]).defaults("index.html");
|
||||
|
||||
// TODO: Move handlers to a separate file
|
||||
// TODO: Improved Token Generation
|
||||
// TODO: Advanded HMAC Verification
|
||||
// TODO: Session Purging
|
||||
|
||||
let router = Router::new()
|
||||
.hoop(CatchPanic::new())
|
||||
.hoop(cors)
|
||||
|
||||
Reference in New Issue
Block a user