flask-kerberos | Kerberos Authentication for Flask | Authentication library
kandi X-RAY | flask-kerberos Summary
kandi X-RAY | flask-kerberos Summary
Kerberos Authentication for Flask
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Decorator to require GSSAPI authentication
- GSSAPI authentication
- Handler for Forbidden Response
- Request authorization
flask-kerberos Key Features
flask-kerberos Examples and Code Snippets
Community Discussions
Trending Discussions on flask-kerberos
QUESTION
Simply saying there is a Flask App based on the Flask-Kerberos example with a valid keytab file (os.environ['KRB5_KTNAME']='/path/to/file.keytab'
).
This is a working tree of my project:
...ANSWER
Answered 2021-Jul-09 at 06:19When you use flask run
, it imports your app as a module, therefore __name__
will not be equal to "__main__", therefore init_kerberos()
never gets called and never sets the _SERVICE_NAME
global within flask-kerberos.
Also, generally, I would suggest switching to flask-gssapi, both because it is written in a cleaner manner and does not rely on global state, and because it is based on python-gssapi instead of the old & nearly unmaintained pykerberos.
QUESTION
I am trying to run the Flask-Kerberos example with a valid keytab file (it works with WSGI-Kerberos).
Here is the content of my 'example.py' file
...ANSWER
Answered 2021-Jul-08 at 11:14I started with brutally integrating the Flask-Kerberos code directly into my 'example.py' file and using some print()
s:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install flask-kerberos
You can use flask-kerberos like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page