MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / TestSignInPageSkipProviderDirect

Function TestSignInPageSkipProviderDirect

oauthproxy_test.go:828–844  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

826}
827
828func TestSignInPageSkipProviderDirect(t *testing.T) {
829 sipTest, err := NewSignInPageTest(true)
830 if err != nil {
831 t.Fatal(err)
832 }
833
834 endpoint := "/sign_in"
835
836 code, body := sipTest.GetEndpoint(endpoint)
837 assert.Equal(t, 302, code)
838
839 match := sipTest.signInProviderRegexp.FindStringSubmatch(body)
840 if match == nil {
841 t.Fatal(patternNotFound +
842 signInSkipProvider + "\nBody:\n" + body)
843 }
844}
845
846type ProcessCookieTest struct {
847 opts *options.Options

Callers

nothing calls this directly

Calls 2

GetEndpointMethod · 0.95
NewSignInPageTestFunction · 0.85

Tested by

no test coverage detected