معرفی شرکت ها


Flask-Heroku-Auth-0.0.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Flask Based Heroku Authentication.
ویژگی مقدار
سیستم عامل -
نام فایل Flask-Heroku-Auth-0.0.5
نام Flask-Heroku-Auth
نسخه کتابخانه 0.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Rhys Elsmore
ایمیل نویسنده me@rhys.io
آدرس صفحه اصلی http://github.com/rhyselsmore/flask-heroku-auth
آدرس اینترنتی https://pypi.org/project/Flask-Heroku-Auth/
مجوز Copyright 2013 Rhys Elsmore Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Flask-Heroku-Auth ================= .. image:: https://travis-ci.org/rhyselsmore/flask-heroku-auth.png?branch=master :target: https://travis-ci.org/rhyselsmore/flask-heroku-auth .. image:: https://pypip.in/d/Flask-Heroku-Auth/badge.png :target: https://crate.io/packages/Flask-Heroku-Auth/ A set of Flask Route decorators to enable either Session-Based Authentication via Heroku's OAuth mechanism, or Basic Stateless Authentication via Heroku's API Key facilities. Installation ------------ .. code-block:: bash pip install flask-heroku-auth Configuration ------------- To enable regex routes within your application .. code-block:: python from flask import Flask from flask_heroku_auth import HerokuAuth app = Flask(__name__) HerokuAuth(app) or .. code-block:: python from flask import Flask from flask_heroku_auth import HerokuAuth auth = HerokuAuth() def create_app(): app = Flask(__name__) auth.init_app(app) return app From here, it is a matter of decorating the appropriate routes. For example, the following would implement authentication via the Heroku OAuth facility .. code-block:: python @app.route('/') @auth.oauth def index(): return "Ok" On the other hand, you may wish to authenticate via the Heroku API Key facility. In this case, the credentials are sent through with every request as an 'Authorization' header .. code-block:: python @app.route('/') @auth.api def index(): return "Ok" You can also restrict access to a Heroku user who has an @heroku.com email address. .. code-block:: python @app.route('/') @auth.oauth @auth.herokai_only def index(): return "Ok" History ======= 0.0.5 (14/11/2012) ------------------ - Introduced a template filter for the current user. 0.0.4 (1/11/2012) ------------------ - Minor Tweaks. 0.0.3 (16/09/2012) ------------------ - User field is now not required for sudo operations. 0.0.2 (24/08/2012) ------------------ - Checking for 'herokai_only' now occurs only if the user is logged in. 0.0.1 (24/08/2012) ------------------ - Conception - Initial Commit of Package to GitHub.


نحوه نصب


نصب پکیج whl Flask-Heroku-Auth-0.0.5:

    pip install Flask-Heroku-Auth-0.0.5.whl


نصب پکیج tar.gz Flask-Heroku-Auth-0.0.5:

    pip install Flask-Heroku-Auth-0.0.5.tar.gz