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

oauthlib / oauthlib / 13006856309
94%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2025 08:58AM UTC
Jobs 1
Files 75
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

28 Jan 2025 08:57AM UTC coverage: 93.018% (+0.06%) from 92.957%
13006856309

push

github

web-flow
Device flow: Pass verification_uri_complete to endpoint + pass Server kwargs to DeviceCodeGrant to allow validators to be setup with more flexibility (#891)

* Ensure verification_uri_complete make it to DeviceAuthorizationEndpoint

Needed as a caller is unable to tell the device endpoint to
return the verification_uri_complete value

* Ensure the device grant gets the kwargs

In order for the device grant's pre token custom valisator to run
as the parent class "GrantTypeBase" sets it up like

    def _setup_custom_validators(self, kwargs):
        post_auth = kwargs.get('post_auth', [])
        post_token = kwargs.get('post_token', [])
        pre_auth = kwargs.get('pre_auth', [])
        pre_token = kwargs.get('pre_token', [])

The need for this was discovered because a pre_token callable needs to be passed
in order to set oauthlib's request.user attribute accordingly before
the token gets saved

* Add test

* Ruff

Don't know why it's complaining on modules I didn't touch
A005 Module `resource` shadows a Python standard-library module
PLC0206 Extracting value from dictionary without calling `.items()`
RUF023 `BearerToken.__slots__` is not sorted

ignoring as this isn't realted to this pr

* Update device docs

1005 of 1112 branches covered (90.38%)

Branch coverage included in aggregate %.

4 of 6 new or added lines in 4 files covered. (66.67%)

3085 of 3285 relevant lines covered (93.91%)

5.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
81.58
0.0% oauthlib/oauth2/rfc8628/clients/device.py
Jobs
ID Job ID Ran Files Coverage
1 13006856309.1 28 Jan 2025 09:02AM UTC 75
93.02
GitHub Action Run
Source Files on build 13006856309
  • Tree
  • List 75
  • Changed 2
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 028a8f18 on github
  • Prev Build on master (#12219896682)
  • Next Build on master (#13173215361)
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