Skip to content

providers/oauth2: fix manual device code entry - #12017

Merged
BeryJu merged 2 commits into
mainfrom
providers/oauth2/fix-device-code-manual-enter
Nov 13, 2024
Merged

BeryJu merged 2 commits into
mainfrom
providers/oauth2/fix-device-code-manual-enter

Conversation

@BeryJu

@BeryJu BeryJu commented Nov 13, 2024

Copy link
Copy Markdown
Member

Details

closes #12014


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@BeryJu
BeryJu requested a review from a team as a code owner November 13, 2024 16:27
@netlify

netlify Bot commented Nov 13, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 70c2d5d
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/6734eef3cf07fe000890638d

@netlify

netlify Bot commented Nov 13, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 70c2d5d
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/6734eef39cb0650008463dcf

@BeryJu

BeryJu commented Nov 13, 2024

Copy link
Copy Markdown
Member Author

/cherry-pick version-2024.10

@codecov

codecov Bot commented Nov 13, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.65%. Comparing base (74171e0) to head (70c2d5d).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12017      +/-   ##
==========================================
+ Coverage   92.56%   92.65%   +0.09%     
==========================================
  Files         761      761              
  Lines       37847    37865      +18     
==========================================
+ Hits        35032    35084      +52     
+ Misses       2815     2781      -34     
Flag Coverage Δ
e2e 49.26% <14.28%> (+0.12%) ⬆️
integration 24.89% <0.00%> (-0.02%) ⬇️
unit 90.17% <100.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BeryJu
BeryJu requested a review from a team as a code owner November 13, 2024 17:31
@BeryJu
BeryJu force-pushed the providers/oauth2/fix-device-code-manual-enter branch from a16d92d to 70c2d5d Compare November 13, 2024 18:24
@github-actions

Copy link
Copy Markdown
Contributor

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-70c2d5d243d0a85af086eb0d1c7a82a924da3f35
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-70c2d5d243d0a85af086eb0d1c7a82a924da3f35-arm64
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
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-70c2d5d243d0a85af086eb0d1c7a82a924da3f35

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-70c2d5d243d0a85af086eb0d1c7a82a924da3f35-arm64

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

@BeryJu
BeryJu merged commit cf6c3c6 into main Nov 13, 2024
@BeryJu
BeryJu deleted the providers/oauth2/fix-device-code-manual-enter branch November 13, 2024 20:45
gcp-cherry-pick-bot Bot pushed a commit that referenced this pull request Nov 13, 2024
* providers/oauth2: fix manual device code entry

Signed-off-by: Jens Langhammer <[email protected]>

* make code input a char field to prevent leading 0s from being cut off

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
BeryJu added a commit that referenced this pull request Nov 13, 2024
…12019)

providers/oauth2: fix manual device code entry (#12017)

* providers/oauth2: fix manual device code entry



* make code input a char field to prevent leading 0s from being cut off



---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Nov 14, 2024
* main:
  providers/ldap: fix global search_full_directory permission not being sufficient (#12028)
  website/docs: 2024.10.2 release notes (#12025)
  lifecycle: fix ak exit status not being passed (#12024)
  core: use versioned_script for path only (#12003)
  core, web: update translations (#12020)
  core: bump google-api-python-client from 2.152.0 to 2.153.0 (#12021)
  providers/oauth2: fix manual device code entry (#12017)
  crypto: validate that generated certificate's name is unique (#12015)
  core, web: update translations (#12006)
  core: bump google-api-python-client from 2.151.0 to 2.152.0 (#12007)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#12011)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#12010)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#12012)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#12013)
  providers/proxy: fix Issuer when AUTHENTIK_HOST_BROWSER is set (#11968)
  website/docs: move S3 ad GeoIP to System Management/Operations (#11998)
  website/integrations: nextcloud: add SSE warning (#11976)
kensternberg-authentik added a commit that referenced this pull request Nov 14, 2024
* main:
  providers/ldap: fix global search_full_directory permission not being sufficient (#12028)
  website/docs: 2024.10.2 release notes (#12025)
  lifecycle: fix ak exit status not being passed (#12024)
  core: use versioned_script for path only (#12003)
  core, web: update translations (#12020)
  core: bump google-api-python-client from 2.152.0 to 2.153.0 (#12021)
  providers/oauth2: fix manual device code entry (#12017)
  crypto: validate that generated certificate's name is unique (#12015)
  core, web: update translations (#12006)
  core: bump google-api-python-client from 2.151.0 to 2.152.0 (#12007)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#12011)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#12010)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#12012)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#12013)
  providers/proxy: fix Issuer when AUTHENTIK_HOST_BROWSER is set (#11968)
  website/docs: move S3 ad GeoIP to System Management/Operations (#11998)
  website/integrations: nextcloud: add SSE warning (#11976)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Device Code Authorization does not work when entering user code manually

1 participant