authentik icon indicating copy to clipboard operation
authentik copied to clipboard

providers/oauth2: Add `cause` to debug issues and better tests

Open BeryJu opened this issue 5 months ago • 4 comments

Details

REPLACE ME


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 avatar Jun 16 '25 01:06 BeryJu

Deploy Preview for authentik-storybook ready!

Name Link
Latest commit 4764d2ccea132452190f10189954d62a557c5cd9
Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6877efd0bf3d8a0008a25c57
Deploy Preview https://deploy-preview-15057--authentik-storybook.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 project configuration.

netlify[bot] avatar Jun 16 '25 01:06 netlify[bot]

Deploy Preview for authentik-docs ready!

Name Link
Latest commit 4764d2ccea132452190f10189954d62a557c5cd9
Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6877efd0cf7b230008b59f0f
Deploy Preview https://deploy-preview-15057--authentik-docs.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 project configuration.

netlify[bot] avatar Jun 16 '25 01:06 netlify[bot]

Codecov Report

Attention: Patch coverage is 95.52239% with 3 lines in your changes missing coverage. Please review.

Project coverage is 93.18%. Comparing base (a8dc21b) to head (4764d2c). Report is 17 commits behind head on main.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/providers/oauth2/views/authorize.py 85.71% 1 Missing :warning:
...entik/providers/oauth2/views/device_backchannel.py 92.85% 1 Missing :warning:
authentik/providers/oauth2/views/token.py 50.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15057      +/-   ##
==========================================
+ Coverage   93.15%   93.18%   +0.02%     
==========================================
  Files         831      831              
  Lines       44146    44157      +11     
==========================================
+ Hits        41126    41148      +22     
+ Misses       3020     3009      -11     
Flag Coverage Δ
e2e 46.62% <20.89%> (-0.02%) :arrow_down:
integration 23.47% <0.00%> (-0.02%) :arrow_down:
unit 91.28% <94.02%> (+0.02%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 16 '25 01:06 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-4764d2ccea132452190f10189954d62a557c5cd9
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-4764d2ccea132452190f10189954d62a557c5cd9

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

github-actions[bot] avatar Jun 16 '25 01:06 github-actions[bot]

Deploy Preview for authentik-integrations canceled.

Name Link
Latest commit 4764d2ccea132452190f10189954d62a557c5cd9
Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6877efd0c5b9e10008bffd16

netlify[bot] avatar Jul 16 '25 15:07 netlify[bot]