Flask-OAuthlib v0.5.0 Release Notes

Release Date: 2014-05-13 // almost 10 years ago
  • 🚀 Released on May 13, 2014

    • ➕ Add contrib.apps module, thanks for tonyseek via #94_.
    • Status code changed to 401 for invalid access token via #93_.
    • 🔒 Security bug for access token via #92_.
    • 🛠 Fix for client part, request token params for OAuth1 via #91_.
    • API change for oauth.require_oauth via #89_.
    • 🛠 Fix for OAuth2 provider, support client authentication for authorization-code grant type via #86_.
    • Fix client_credentials logic in validate_grant_type via #85_.
    • 🛠 Fix for client part, pass access token method via #83_.
    • 🛠 Fix for OAuth2 provider related to confidential client via #82_.

    ⬆️ Upgrade From 0.4.x to 0.5.0

    
    API for OAuth providers ``oauth.require_oauth`` has changed.
    
    Before the change, you would write code like::
    
        @app.route('/api/user')
        @oauth.require_oauth('email')
        def user(req):
            return jsonify(req.user)
    
    After the change, you would write code like::
    
        from flask import request
    
        @app.route('/api/user')
        @oauth.require_oauth('email')
        def user():
            return jsonify(request.oauth.user)
    
    .. _`#94`: https://github.com/lepture/flask-oauthlib/pull/94
    .. _`#93`: https://github.com/lepture/flask-oauthlib/issues/93
    .. _`#92`: https://github.com/lepture/flask-oauthlib/issues/92
    .. _`#91`: https://github.com/lepture/flask-oauthlib/issues/91
    .. _`#89`: https://github.com/lepture/flask-oauthlib/issues/89
    .. _`#86`: https://github.com/lepture/flask-oauthlib/pull/86
    .. _`#85`: https://github.com/lepture/flask-oauthlib/pull/85
    .. _`#83`: https://github.com/lepture/flask-oauthlib/pull/83
    .. _`#82`: https://github.com/lepture/flask-oauthlib/issues/82
    
    Thanks Stian Prestholdt and Jiangge Zhang.