authentik icon indicating copy to clipboard operation
authentik copied to clipboard

providers/oauth2: add device flow

Open BeryJu opened this issue 2 years ago • 3 comments

closes #2430

BeryJu avatar Jul 30 '22 20:07 BeryJu

Deploy Preview for authentik ready!

Name Link
Latest commit 6d1a010afe564dda71858deb704a1593d1c4b4e3
Latest deploy log https://app.netlify.com/sites/authentik/deploys/63454863172e29000a2b76ce
Deploy Preview https://deploy-preview-3334--authentik.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jul 30 '22 20:07 netlify[bot]

Codecov Report

Base: 92.56% // Head: 92.56% // Decreases project coverage by -0.01% :warning:

Coverage data is based on head (0ea2716) compared to base (9bbe8e6). Patch coverage: 93.10% of modified lines in pull request are covered.

:exclamation: Current head 0ea2716 differs from pull request most recent head 6d1a010. Consider uploading reports for the commit 6d1a010 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3334      +/-   ##
==========================================
- Coverage   92.56%   92.56%   -0.00%     
==========================================
  Files         460      468       +8     
  Lines       22295    22635     +340     
==========================================
+ Hits        20635    20949     +314     
- Misses       1660     1686      +26     
Flag Coverage Δ
e2e 54.63% <36.52%> (-0.26%) :arrow_down:
integration 28.60% <7.90%> (-0.20%) :arrow_down:
unit 89.05% <93.10%> (+0.05%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
authentik/providers/oauth2/views/provider.py 100.00% <ø> (ø)
authentik/providers/oauth2/views/device_finish.py 72.73% <72.73%> (ø)
authentik/providers/oauth2/views/device_init.py 83.55% <83.55%> (ø)
authentik/providers/oauth2/models.py 94.10% <94.12%> (-0.04%) :arrow_down:
...entik/providers/oauth2/views/device_backchannel.py 97.92% <97.92%> (ø)
authentik/lib/generators.py 100.00% <100.00%> (ø)
authentik/providers/oauth2/constants.py 100.00% <100.00%> (ø)
authentik/providers/oauth2/errors.py 79.77% <100.00%> (+1.56%) :arrow_up:
.../providers/oauth2/tests/test_device_backchannel.py 100.00% <100.00%> (ø)
...thentik/providers/oauth2/tests/test_device_init.py 100.00% <100.00%> (ø)
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jul 30 '22 20:07 codecov[bot]

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-providers-oauth2-device-1665484076-4f119a6af7d80ee2398d6b2e0604174439cad9a7
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-providers-oauth2-device-1665484076-4f119a6af7d80ee2398d6b2e0604174439cad9a7

Afterwards, run the upgrade commands from the latest release notes.

github-actions[bot] avatar Jul 30 '22 21:07 github-actions[bot]

Hello, @BeryJu at netbirdio/netbird, we have some users very interested in this feature. Is there an estimation on when it will be merged and there anything we could help with?

mlsmaycon avatar Sep 30 '22 09:09 mlsmaycon