Skip to content

sources/saml: fix pickle error, add saml auth tests - #10348

Merged
BeryJu merged 5 commits into
mainfrom
sources/saml/fix-tests-more
Jul 3, 2024
Merged

BeryJu merged 5 commits into
mainfrom
sources/saml/fix-tests-more

Conversation

@BeryJu

@BeryJu BeryJu commented Jul 3, 2024

Copy link
Copy Markdown
Member

Details

closes #10275


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 added 3 commits July 3, 2024 17:15
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu requested a review from a team as a code owner July 3, 2024 15:18
@netlify

netlify Bot commented Jul 3, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 7957dc6
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/668570e8cc820a00088deca1

@netlify

netlify Bot commented Jul 3, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 7957dc6
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/668570e8b99ae10008965af7

@codecov

codecov Bot commented Jul 3, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.63%. Comparing base (fc39323) to head (7957dc6).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10348      +/-   ##
==========================================
- Coverage   92.64%   92.63%   -0.02%     
==========================================
  Files         713      713              
  Lines       34978    34988      +10     
==========================================
+ Hits        32407    32411       +4     
- Misses       2571     2577       +6     
Flag Coverage Δ
e2e 49.56% <81.81%> (+0.01%) ⬆️
integration 25.38% <9.09%> (-0.01%) ⬇️
unit 90.12% <72.72%> (-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.

Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the sources/saml/fix-tests-more branch from ddb2932 to baa4a1f Compare July 3, 2024 15:37
Signed-off-by: Jens Langhammer <[email protected]>
@github-actions

github-actions Bot commented Jul 3, 2024

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-ghcr.io/goauthentik/dev-server:gh-7957dc688e35abf28e5b047012cd683d34954c27
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-ghcr.io/goauthentik/dev-server:gh-7957dc688e35abf28e5b047012cd683d34954c27-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
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-ghcr.io/goauthentik/dev-server:gh-7957dc688e35abf28e5b047012cd683d34954c27

For arm64, use these values:

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

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

@BeryJu

BeryJu commented Jul 3, 2024

Copy link
Copy Markdown
Member Author

/cherry-pick version-2024.6

@BeryJu
BeryJu merged commit 8bd514e into main Jul 3, 2024
@BeryJu
BeryJu deleted the sources/saml/fix-tests-more branch July 3, 2024 16:28
gcp-cherry-pick-bot Bot pushed a commit that referenced this pull request Jul 3, 2024
* test with persistent nameid

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

* fix pickle

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

* user_write: dont attempt to write to read only property

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

* add test for enroll + auth

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

* unwrap lazy user

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
BeryJu added a commit that referenced this pull request Jul 3, 2024
…) (#10352)

sources/saml: fix pickle error, add saml auth tests (#10348)

* test with persistent nameid



* fix pickle



* user_write: dont attempt to write to read only property



* add test for enroll + auth



* unwrap lazy user



---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Jul 5, 2024
* main:
  website/docs: add links and tweaks to existing docs on flow executors (#10340)
  sources/saml: fix pickle error, add saml auth tests (#10348)
  web: bump API Client version (#10351)
  core: applications api: add option to only list apps with launch url (#10336)
  website/integrations: minio: configure openid on web (#9874)
  website/docs: integrations: gitea: specify callback url (#10180)
  providers/saml: fix metadata import error handling (#10349)
  core, web: update translations (#10341)
  core: bump twilio from 9.2.2 to 9.2.3 (#10343)
  core: bump google-api-python-client from 2.135.0 to 2.136.0 (#10344)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#10339)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#10338)
  web: bump the storybook group in /web with 7 updates (#10263)
  web: lintpicking (#10212)
kensternberg-authentik added a commit that referenced this pull request Jul 15, 2024
* main:
  website/docs: add links and tweaks to existing docs on flow executors (#10340)
  sources/saml: fix pickle error, add saml auth tests (#10348)
  web: bump API Client version (#10351)
  core: applications api: add option to only list apps with launch url (#10336)
  website/integrations: minio: configure openid on web (#9874)
  website/docs: integrations: gitea: specify callback url (#10180)
  providers/saml: fix metadata import error handling (#10349)
  core, web: update translations (#10341)
  core: bump twilio from 9.2.2 to 9.2.3 (#10343)
  core: bump google-api-python-client from 2.135.0 to 2.136.0 (#10344)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#10339)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#10338)
  web: bump the storybook group in /web with 7 updates (#10263)
  web: lintpicking (#10212)
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.

SAML and OAUTH federated logins not working on 24.6.0

1 participant