• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

oauthlib / oauthlib / 11391297685
94%

Build:
DEFAULT BRANCH: master
Ran 17 Oct 2024 06:59PM UTC
Jobs 1
Files 72
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2024 06:59PM UTC coverage: 93.208% (+0.003%) from 93.205%
11391297685

push

github

web-flow
Allow user_code to be configured for device auth flow (Device Authorization Grant) (#885)

* Allow custom user_code

* Add convience import

* Allow user code to be configured in device auth flow

Whilst oauth2 doesn't specify how the format should be
the current behaviour generates a code that is not human and device friendly.

e.g 6Pp9vPKaanbFydF9omtlNLLdJA4HG7

This commit makes it so that's the default behvaiour but allows the caller of DeviceApplicationServer
to pass in a user code in a format they prefer in the form of a callable to be called that returns the code as a string

* Return a python dict in create_device_authorization_response

The json serialisation should occur at the interface level (e.g a view) that will use this method
not the method itself as it can lead to "double" json serialisation or the need to use json.loads()
to deserialize and serialise it again before the httpResponse is made back to the client

* Update tests

* Add typing

* Apply ruff format

* Add device authorization doc

* Apply 99 line length ruff format

949 of 1052 branches covered (90.21%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 5 files covered. (100.0%)

3031 of 3218 relevant lines covered (94.19%)

5.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11391297685.1 17 Oct 2024 07:00PM UTC 72
93.21
GitHub Action Run
Source Files on build 11391297685
  • Tree
  • List 72
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bf75322a on github
  • Prev Build on master (#11313396654)
  • Next Build on master (#11437696741)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc