Giter VIP home page Giter VIP logo

loginpass's Introduction

Authlib Loginpass

Social connections powered by Authlib. This library is a part of Authlib project. It works well with Authlib v0.7+.

Build Status PyPI Version Follow Twitter

from flask import Flask
from authlib.flask.client import OAuth
from loginpass import create_flask_blueprint, GitHub

app = Flask(__name__)
oauth = OAuth(app)

def handle_authorize(remote, token, user_info):
    if token:
        save_token(remote.name, token)
    if user_info:
        save_user(user_info)
        return user_page
    raise some_error

github_bp = create_flask_blueprint(GitHub, oauth, handle_authorize)
app.register_blueprint(github_bp, url_prefix='/github')

Useful Links

Features

Authlib Loginpass contains lots of connections (see below), every connection has a profile() method which returns the same format of user info. It supports OAuth 1, OAuth 2 and OpenID Connect for now.

The user info that profile() returns is standardized with OpenID Connect UserInfo claims, not something made by me.

Connections

Connections that Authlib Loginpass contains:

  • Battle.net
  • Google
  • GitHub
  • Gitlab
  • Twitter
  • Facebook
  • Dropbox
  • Reddit
  • Linkedin
  • Azure
  • Discord
  • Slack
  • Jira
  • StackOverflow
  • Bitbucket
  • Auth0
  • Strava
  • Spotify
  • Yandex
  • Twitch
  • VK
  • Ory Hydra

Usage

Loginpass is just a simple wrapper around Authlib, it is configured apps ready to use with Flask and Django. Checkout the examples for details.

License

Loginpass is a group member of Authlib, it is licensed under BSD. Authlib commercial license applies to this project too, you can get a commercial license at Authlib Commercial Plans.

loginpass's People

Contributors

lepture avatar andriyor avatar kairichard avatar cburmeister avatar davidism avatar xofbd avatar jckw avatar jamielennox avatar matthdsm avatar salty-horse avatar rdbisme avatar telepenin avatar andvikt avatar bnewbold avatar euri10 avatar

Watchers

James Cloos 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.