Git Product home page Git Product logo

genkan's Introduction

Genkan (็Ž„้–ข)

Genkan is the Kitsu Authentication service, written as a standalone application in Rails 5, backed by PostgreSQL. In terms of functionality, it sits somewhere between Devise and Doorkeeper, but implemented as an application instead of a gem. Because it's implemented as a full Rails app, you don't need to worry about dependency conflicts or naming collisions or any of that nonsense.

Simply fork Genkan, change the views, hook your own application up to the API, and you're set. To update, just rebase.

Models

User Name

The UserName model maps case-insensitive user-friendly identifiers such as email addresses or account names to a computer-provided User ID. The User ID is completely opaque to Genkan, and it's up to you what string you wanna use. Kitsu uses auto-incrementing integers, but you don't have to. If you use UUIDs for users, that works too.

User Password

A user can have as many passwords as you want. The passwords are bcrypt-hashed before storage, marked with a creation time, and you can mark them as invalid at any time.

User Assertion ID

The OAuth2 Assertion Grant provides a flow for authorization where a client presents a valid token from an external service (such as Twitter, Facebook, or Google) which can be verified by the server. For this purpose, Genkan has a UserAssertionID model, which stores a mapping between an external user ID and an internal user ID.

Token

Genkan issues signed JWTs for all Tokens (using RS256 by default) but also stores their metadata in a database table for revocation. For revocation to work, your application must use the API to authenticate the token on each request.

genkan's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar nuckchorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

genkan's Issues

Auth in `kitsu.io` not live simultaneously for `www.kitsu.io`

First of all I apologize if this is not the right place to report auth issues - the repository description does say "The future" so I'm unsure if this code is actually being used.

Issue Description

I'm logged into kitsu.io, but when someone links me to www. kitsu.io, my credentials are not valid for the latter.

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.