mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
9 lines
337 B
Python
9 lines
337 B
Python
import werkzeug.exceptions
|
|
from werkzeug.exceptions import *
|
|
|
|
|
|
class Unauthorized(werkzeug.exceptions.Unauthorized):
|
|
""" Overridden to return WWW-Authenticate challenge header """
|
|
def get_headers(self, environ):
|
|
return [('Content-Type', 'text/html'),
|
|
('WWW-Authenticate', 'Basic realm="Login required"')]
|