All Projects → idlesign → django-oauthost

idlesign / django-oauthost

Licence: BSD-3-Clause license
Reusable application for Django, introducing OAuth2 server functionality.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to django-oauthost

Beego Authz
Beego's RBAC & ABAC Authorization middleware based on Casbin
Stars: ✭ 208 (+732%)
Mutual labels:  authorization
Spring Security Pac4j
pac4j security library for Spring Security: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 231 (+824%)
Mutual labels:  authorization
Banken
Simple and lightweight authorization library for Rails
Stars: ✭ 247 (+888%)
Mutual labels:  authorization
Run Aspnetcore Realworld
E-Commerce real world example of run-aspnetcore ASP.NET Core web application. Implemented e-commerce domain with clean architecture for ASP.NET Core reference application, demonstrating a layered application architecture with DDD best practices. Download 100+ page eBook PDF from here ->
Stars: ✭ 208 (+732%)
Mutual labels:  authorization
Appy
🚀 A full stack boilerplate web app
Stars: ✭ 225 (+800%)
Mutual labels:  authorization
Simonsays
💂 Simple, declarative, role-based access control system for Rails and Ruby
Stars: ✭ 245 (+880%)
Mutual labels:  authorization
Casbin Authz Plugin
Docker Authorization Plugin based on Casbin
Stars: ✭ 204 (+716%)
Mutual labels:  authorization
Rbac
Hierarchical Role-Based Access Control for Node.js
Stars: ✭ 254 (+916%)
Mutual labels:  authorization
Kan
Simple, functional authorization library and role management for ruby
Stars: ✭ 232 (+828%)
Mutual labels:  authorization
Chi Authz
chi-authz is an authorization middleware for Chi
Stars: ✭ 248 (+892%)
Mutual labels:  authorization
Mosquitto Go Auth
Auth plugin for mosquitto.
Stars: ✭ 212 (+748%)
Mutual labels:  authorization
Caddy Authz
Caddy-authz is a middleware for Caddy that blocks or allows requests based on access control policies.
Stars: ✭ 221 (+784%)
Mutual labels:  authorization
Bouncer
Eloquent roles and abilities.
Stars: ✭ 2,763 (+10952%)
Mutual labels:  authorization
Registration Login Spring Hsql
Registration and Login Example with Spring Security, Spring Boot, Spring Data JPA, HSQL, JSP
Stars: ✭ 208 (+732%)
Mutual labels:  authorization
Yii2 Usuario
Highly customizable and extensible user management, authentication, and authorization Yii2 extension
Stars: ✭ 251 (+904%)
Mutual labels:  authorization
Superb
Pluggable HTTP authentication for Swift.
Stars: ✭ 206 (+724%)
Mutual labels:  authorization
Vue Router User Roles
A Vue.js plugin that protects routes based on user roles. Add your own authentication.
Stars: ✭ 237 (+848%)
Mutual labels:  authorization
role-based-access-control
Role-based authorization || Role-based access-control in React.js
Stars: ✭ 111 (+344%)
Mutual labels:  authorization
Sureness
A simple and efficient open-source security framework that focus on protection of restful api.
Stars: ✭ 254 (+916%)
Mutual labels:  authorization
Layui Authtree
扩展 layui 的权限树 authtree
Stars: ✭ 244 (+876%)
Mutual labels:  authorization

django-oauthost

http://github.com/idlesign/django-oauthost

What's that

Reusable application for Django to protect your apps with OAuth 2.0.

It allows to guard your application views with OAuth 2.0 in quite a trivial way.

  1. Register your client using Django Admin or API:
from oauthost.toolbox import register_client

...

# Define some scopes to restrict our client to (if required).
my_scopes = ['polls:vote']

# `user` might be `request.user` if in a view.
register_client('My OAuth Client', 'my_client',
                'http://someurl.com/myclient/', user, scopes_list=my_scopes)

...
  1. Decorate your views with oauth_required (suppose in polls.views):
from oauthost.decorators import oauth_required

@oauth_required(scope_auto=True)
def vote(request, poll_id, variant_id):
    ...
  1. Attach oauthost.urls to project urls (in urls.py):
from oauthost.urls import urlpatterns as oauthost_urlpatterns

urlpatterns = ...  # Your actual urlpatterns are ommited.

urlpatterns += oauthost_urlpatterns

Now authorization endpoint is available at { BASE_URL }auth/ and token endpoint is available at { BASE_URL }token/.

That's all for oauthost, connect using your client.

More information is available, read the docs!

Documentation

http://django-oauthost.readthedocs.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].