requests-oauth2 | Python 's Requests OAuth2 plugin | OAuth library

 by   maraujop Python Version: 0.3.0 License: BSD-3-Clause

kandi X-RAY | requests-oauth2 Summary

kandi X-RAY | requests-oauth2 Summary

requests-oauth2 is a Python library typically used in Security, OAuth applications. requests-oauth2 has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install requests-oauth2' or download it from GitHub, PyPI.

Python's Requests OAuth2 (Open Authentication) plugin
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              requests-oauth2 has a low active ecosystem.
              It has 131 star(s) with 45 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 8 have been closed. On average issues are closed in 744 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of requests-oauth2 is 0.3.0

            kandi-Quality Quality

              requests-oauth2 has 0 bugs and 0 code smells.

            kandi-Security Security

              requests-oauth2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              requests-oauth2 code analysis shows 0 unresolved vulnerabilities.
              There are 3 security hotspots that need review.

            kandi-License License

              requests-oauth2 is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              requests-oauth2 releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              requests-oauth2 saves you 73 person hours of effort in developing the same functionality from scratch.
              It has 190 lines of code, 12 functions and 7 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed requests-oauth2 and discovered the below as its top functions. This is intended to give you an instant insight into requests-oauth2 implemented functionality, and help decide if they suit your requirements.
            • Handle Google OAuth 2
            • Generate the authorization URL
            • Get a token
            • Make a HTTP POST request
            • Check if attributes are configured
            • Refresh access token
            • Revoke a token
            Get all kandi verified functions for this library.

            requests-oauth2 Key Features

            No Key Features are available at this moment for requests-oauth2.

            requests-oauth2 Examples and Code Snippets

            No Code Snippets are available at this moment for requests-oauth2.

            Community Discussions

            QUESTION

            LinkedIn API get /v2/me returns "Unpermitted fields present in PARAMETER"
            Asked 2020-Feb-17 at 21:11
            The Problem

            I'm trying to run the requests-OAuth2 LinkedIn example. I've been able to fix a few issues with the example being out of date but cannot seem to get the last line to run correctly.
            The response object contents from running the program:

            b'{"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/access_token]","status":403}

            The System and Versions
            • Python 3.6.8
            • requests 2.22.0
            • requests-oauthlib 1.2.0
              Running everything through terminal.
            The Attempts
            1. First of all the application settings have the correct permissions r_liteprofile.
            2. I confirmed that I am authenticating with with correct scope.
            3. I've tried adding various headers to the get request.
            4. I console printed the contents of the PARAMETERS variable in the request object and found it to be an empty dict.
            The Code

            I've added comments to explain which changes I've made from the stock tutorial on the requests-oauthlib website.

            ...

            ANSWER

            Answered 2020-Feb-17 at 21:11
            UPDATE 02/17/2020

            As per the documentation and comments made on the github repository, https://github.com/requests/requests-oauthlib LinkedIn compliance fixes were outdated and causing bugs. The maintainers have since removed the LinkedIn compliance fix code and applied several updates to the LinkedIn example as part of PR #397. This should not be an issue anymore.

            Original Answer Below

            Ultimately the request url I was passing contained an unpermitted field. Manual review of the url revealed two fields:

            1. oauth2_access_token
            2. access_token

            Looking at the OAuth2-Requests source code, the second field is added to the url right before making the final request.

            requests-oauthlib/requests_oauthlib/oauth2_session.py

            I imagine there is a mechanism in place to prevent the behavior but I could not find it and my comments/questions on their github and other places went unanswered. My solution was to copy a modified version of the oauth2_session.py module in my project with this dirty fix within the request() method.

            Source https://stackoverflow.com/questions/57333297

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install requests-oauth2

            You can install using 'pip install requests-oauth2' or download it from GitHub, PyPI.
            You can use requests-oauth2 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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install requests-oauth2

          • CLONE
          • HTTPS

            https://github.com/maraujop/requests-oauth2.git

          • CLI

            gh repo clone maraujop/requests-oauth2

          • sshUrl

            git@github.com:maraujop/requests-oauth2.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular OAuth Libraries

            satellizer

            by sahat

            cpprestsdk

            by microsoft

            oauth2-server

            by thephpleague

            scribejava

            by scribejava

            socialite

            by laravel

            Try Top Libraries by maraujop

            requests-oauth

            by maraujopPython

            django-rules

            by maraujopPython

            django-MultiWidgetLayout

            by maraujopPython

            princexml-indexer

            by maraujopShell