Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

sso_*: move sign_in and sign_out HTML pages to sso_proxy#261

Open
Jusshersmith wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromjusshersmith-move-sign-in-page

Conversation

Jusshersmith
Copy link
Contributor

@JusshersmithJusshersmith commentedOct 23, 2019
edited
Loading

Problem

The current setup of html sign in and sign out pages causes some extra friction with implementing#252 - this change gives us some extra flexibility here. Also, havingsso_proxy first send requests tosso_auth, which subsequently renders the sign in page (and redirects back) results in extra requests and extra complexity (for example, an extra layer of nested redirects needs to be specified).

Solution

Move the sign_in and sign_out HTML pages to be rendered by sso_proxy instead of sso_auth. In doing so, simplify the flow in part betweensso_proxy andsso_authenticator.

Notes

This is a big change, so I'm working to add some more detailed descriptions of the changes (and going over any TODO's) to aid in better understanding them, as well as reviewing the PR in general.

template pkgadd static_files_test.go filefix TestSecurityHeaders testfix TestOAuthStart: replace template interfacefix TestHTTPSRedirectpartial but incomplete fix for test_provider GetSignInURL/GetSignOutURLadd initial TestSignOutPage functionfix sign out with no session workflowsome tidyingssso_auth:additional redirect URI changessso_auth: authenticagtor test changessso_proxy: oauthproxy tests
@JusshersmithJusshersmithforce-pushed thejusshersmith-move-sign-in-page branch from1a8eeb6 tod6843c3CompareJanuary 6, 2020 14:26
@codecov
Copy link

codecovbot commentedJan 6, 2020
edited
Loading

Codecov Report

Merging#261 intomaster willdecrease coverage by0.01%.
The diff coverage is65.9%.

@@            Coverage Diff            @@##           master    #261      +/-   ##=========================================- Coverage   62.51%   62.5%   -0.02%=========================================  Files          54      55       +1       Lines        4199    4211      +12     =========================================+ Hits         2625    2632       +7- Misses       1385    1386       +1- Partials      189     193       +4
Impacted FilesCoverage Δ
internal/proxy/providers/providers.go0% <ø> (ø)⬆️
internal/proxy/providers/sso.go69.14% <0%> (+0.53%)⬆️
internal/proxy/providers/test_provider.go0% <0%> (ø)⬆️
...nternal/proxy/providers/singleflight_middleware.go0% <0%> (ø)⬆️
internal/pkg/templates/templates.go100% <100%> (ø)⬆️
internal/proxy/static_files.go73.33% <73.33%> (ø)
internal/auth/authenticator.go83.85% <84.21%> (-2.33%)⬇️
internal/proxy/oauthproxy.go59.15% <86.27%> (+4.71%)⬆️

@JusshersmithJusshersmith marked this pull request as ready for reviewJanuary 6, 2020 17:01
@Jusshersmith
Copy link
ContributorAuthor

Marked as ready for review, but see Notes in description.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@Jusshersmith

[8]ページ先頭

©2009-2025 Movatter.jp