Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Add OIDC e2e tests based on Keycloak #21

Merged
merged 11 commits into from
Feb 20, 2024
Merged

Add OIDC e2e tests based on Keycloak #21

merged 11 commits into from
Feb 20, 2024

Conversation

nacx
Copy link
Member

@nacx nacx commented Feb 19, 2024

No description provided.

@nacx nacx requested a review from sergicastro February 19, 2024 15:21
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (f281f16) 89.39% compared to head (7ee8894) 89.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   89.39%   89.34%   -0.05%     
==========================================
  Files          16       17       +1     
  Lines        1103     1117      +14     
==========================================
+ Hits          986      998      +12     
- Misses         84       85       +1     
- Partials       33       34       +1     
Files Coverage Δ
internal/authz/oidc.go 90.20% <100.00%> (ø)
internal/server/authz.go 94.68% <ø> (+0.68%) ⬆️
internal/server/server.go 90.00% <100.00%> (+1.11%) ⬆️
internal/config.go 97.00% <87.50%> (-0.83%) ⬇️
internal/server/requestid.go 77.77% <77.77%> (ø)

@nacx nacx force-pushed the keycloak branch 8 times, most recently from aab78af to 303a974 Compare February 19, 2024 22:52
@nacx nacx force-pushed the keycloak branch 3 times, most recently from 7b3c766 to f019ea6 Compare February 19, 2024 23:18
// getCookieName returns the cookie name to use for the session id.
func getCookieName(config *oidcv1.OIDCConfig) string {
// GetCookieName returns the cookie name to use for the session id.
func GetCookieName(config *oidcv1.OIDCConfig) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you export it? I don't find the use.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use it in the tests to avoid copying the name logic there.

@nacx nacx merged commit f5617dd into main Feb 20, 2024
7 of 8 checks passed
@nacx nacx deleted the keycloak branch February 20, 2024 08:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants