{"repo":"trchopan/firebase-auth","free":true,"listed":false,"github":"https://github.com/trchopan/firebase-auth","clone":"git clone https://github.com/trchopan/firebase-auth.git","description":"A framework extractor middleware for verifying JWT tokens from Firebase Authentication, supporting Rust Actix and Axum web frameworks.","language":"Rust","stars":38,"topics":["authentication","firebase","firebase-auth","jwt","rust"],"license":null,"category":"auth-billing-email","readme_excerpt":"Firebase Auth A simple and small Rust library for handling Firebase Authorization. Supports the two most popular frameworks: Tokio's Axum and Actix-web. [![Build badge]][Build] [![crates.io badge]][crates.io] [Build]: https://github.com/trchopan/firebase-auth/actions/workflows/rust.yml [Build badge]: https://github.com/trchopan/firebase-auth/actions/workflows/rust.yml/badge.svg [crates.io]: https://crates.io/crates/firebase-auth [crates.io badge]: https://img.shields.io/crates/v/firebase-auth.svg?color=%23B48723 Note Version 0.5.x supports Axum 0.8. Version 0.4.x supports Axum 0.7. Version 0.3.x supports Axum 0.6. Setup Actix Axum Examples Actix https://github.com/trchopan/firebase-auth/tree/main/examples/actix basic.rs Axum https://github.com/trchopan/firebase-auth/tree/main/examples/axum basic.rs More complete example with Axum, SQLite and slqx examples/axum-sqlite This is more real world application with Firebase Authentication and SQLite as database. Using Custom Claims examples/actix-web-custom-claims examples/axum-custom-claims Custom claims are provided as defined FirebaseUser struct and use actix or axum trait to implement the extraction from the request. How to call the endpoint with Bearer Token Obtain the Bearer token Use firebase sdk to get the User Token. For example: getIdToken() Request the endpoint with Authorization Bearer Make the request using the User's token. Note that it will expire so you will need to get it again if expired. Firebase Document Verify ID","default_branch":null,"files":null,"tree":[],"storefront":"/r/trchopan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/trchopan/firebase-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}