Skip to content

Instantly share code, notes, and snippets.

View Mabuchin's full-sized avatar
🐶

Mabuchin Mabuchin

🐶
View GitHub Profile
@Mabuchin
Mabuchin / custom_middleware.py
Created February 20, 2019 10:32 — forked from leoluk/custom_middleware.py
Netbox OAuth Login
"""
Custom LOGIN_REQUIRED middleware which allows OAuth URLs.
"""
import utilities.middleware
from django.conf import settings
class CustomLoginRequiredMiddleware(utilities.middleware.LoginRequiredMiddleware):
def __call__(self, request):