GithubHelp home page GithubHelp logo

weasy666 / rocket_auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bramvdbogaerde/auth-rs

2.0 2.0 0.0 23.52 MB

Simple username/password authentication system for Rocket

License: MIT License

Rust 100.00%

rocket_auth's Introduction

❗ This crate is deprecated ❗

It won't be updated for Rocket 0.5 and it's async runtime. Instead take a look at rocket-airlock

rocket_auth

This library provides a easy authentication system to use with Rocket, its purpose is to get integrated to Rocket Contrib as the canonical way to do authentication. The current implementation is what I was able to come up with after taking some inspiration of Bram Vandenbogaerde's rocket-simpleauth crate and also leveraging it as a starting point, but it is nearly a complete rewrite (which should allow a license change to a more open one).

Checklist

So what is left to do and what was already done?

  1. make it easy to use ✔
  2. make it also flexible/extendible enough ✔ (for me it is, but the topic may still need some discussion)
  3. get the "Approved by Sergio or Jeb"-stamp

I think 1. and 2. are already ok as is. I am not sure about 3., as Sergio told the community in Issue #8 that he will be quite picky...so lets see what will happen 😄.

How to use

First, you know the drill, add the following lines to your Cargo.toml.

[dependencies]
rocket = "0.4.2"
rocket_codegen = "0.4.2"
rocket_auth = { git="https://github.com/Weasy666/rocket_auth" }

Another option is to download it and add it as a module to your existing project or download it and add it in your Cargo.toml as local crate with a relative path from your project to this project like rocket_auth = {path = "../rocket_auth/"}. Then add extern crate rocket_auth to your main.rs file and begin hacking.

Examples

You can find a basic example in the examples/ directory.

rocket_auth's People

Contributors

bbigras avatar blackghost1987 avatar bramvdb avatar bramvdbogaerde avatar weasy666 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.