forked from pallets-eco/flask-security-3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix merge conflicts and fix release.py
- Loading branch information
Showing
75 changed files
with
4,247 additions
and
1,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
.DS_Store | ||
*.pyc | ||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
.project | ||
.pydevproject | ||
.settings | ||
dist | ||
*build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Mr Developer | ||
.mr.developer.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: python | ||
|
||
python: | ||
- "2.6" | ||
- "2.7" | ||
|
||
install: | ||
- pip install . --quiet --use-mirrors | ||
- "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install importlib --quiet --use-mirrors; fi" | ||
- pip install nose simplejson Flask-SQLAlchemy Flask-MongoEngine Flask-Mail py-bcrypt MySQL-python --quiet --use-mirrors | ||
|
||
before_script: | ||
- mysql -e 'create database flask_security_test;' | ||
|
||
services: | ||
- mongodb | ||
|
||
script: nosetests | ||
|
||
branches: | ||
only: | ||
- develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
include tests/*.py | ||
recursive-include tests *.py | ||
recursive-include flask_security/templates *.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Flask-Security | ||
============== | ||
|
||
.. image:: https://secure.travis-ci.org/mattupstate/flask-security.png?branch=develop | ||
|
||
Flask-Security quickly adds security features to your Flask application. | ||
|
||
Resources | ||
--------- | ||
|
||
- `Documentation <http://packages.python.org/Flask-Security/>`_ | ||
- `Issue Tracker <http://github.com/mattupstate/flask-security/issues>`_ | ||
- `Code <http://github.com/mattupstate/flask-security/>`_ | ||
- `Development Version | ||
<http://github.com/mattupstate/flask-security/zipball/develop#egg=Flask-Security-dev>`_ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<h3>About</h3> | ||
<p> | ||
Flask-Security is an opinionated Flask extension which adds basic | ||
security and authentication features to your Flask apps quickly | ||
and easily. Flask-Social can also be used to add "social" or OAuth | ||
login and connection management. | ||
</p> | ||
<h3>Useful Links</h3> | ||
<ul> | ||
<li><a href="http://pypi.python.org/pypi/Flask-Security">Flask-Security @ PyPI</a></li> | ||
<li><a href="http://github.com/mattupstate/flask-security">Flask-Security @ github</a></li> | ||
<li><a href="http://github.com/jfinkels/flask-security/issues">Issue Tracker</a></li> | ||
</ul> | ||
<ul> | ||
<li><a href="http://pypi.python.org/pypi/Flask-Social">Flask-Social</a></li> | ||
<li><a href="http://github.com/mattupstate/flask-social">Flask-Social @ github</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p class="logo"><a href="{{ pathto(master_doc) }}"> | ||
<img class="logo" src="{{ pathto('_static/logo-helmet.png', 1) }}" alt="Logo"/> | ||
</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
API | ||
=== | ||
|
||
Core | ||
---- | ||
.. autoclass:: flask_security.core.Security | ||
:members: | ||
|
||
.. data:: flask_security.core.current_user | ||
|
||
A proxy for the current user. | ||
|
||
|
||
Protecting Views | ||
---------------- | ||
.. autofunction:: flask_security.decorators.login_required | ||
|
||
.. autofunction:: flask_security.decorators.roles_required | ||
|
||
.. autofunction:: flask_security.decorators.roles_accepted | ||
|
||
.. autofunction:: flask_security.decorators.http_auth_required | ||
|
||
.. autofunction:: flask_security.decorators.auth_token_required | ||
|
||
|
||
User Object Helpers | ||
------------------- | ||
.. autoclass:: flask_security.core.UserMixin | ||
:members: | ||
|
||
.. autoclass:: flask_security.core.RoleMixin | ||
:members: | ||
|
||
.. autoclass:: flask_security.core.AnonymousUser | ||
:members: | ||
|
||
|
||
Datastores | ||
---------- | ||
.. autoclass:: flask_security.datastore.UserDatastore | ||
:members: | ||
|
||
.. autoclass:: flask_security.datastore.SQLAlchemyUserDatastore | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: flask_security.datastore.MongoEngineUserDatastore | ||
:members: | ||
:inherited-members: | ||
|
||
|
||
Signals | ||
------- | ||
See the documentation for the signals provided by the Flask-Login and | ||
Flask-Principal extensions. Flask-Security does not provide any additional | ||
signals. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.