MCPcopy Index your code
hub / github.com/coder/coder / SetCoderdCallbackHandler

Method SetCoderdCallbackHandler

coderd/coderdtest/oidctest/idp.go:1519–1525  ·  view source on GitHub ↗
(handler http.HandlerFunc)

Source from the content-addressed store, hash-verified

1517}
1518
1519func (f *FakeIDP) SetCoderdCallbackHandler(handler http.HandlerFunc) {
1520 f.SetCoderdCallback(func(req *http.Request) (*http.Response, error) {
1521 resp := httptest.NewRecorder()
1522 handler.ServeHTTP(resp, req)
1523 return resp.Result(), nil
1524 })
1525}
1526
1527// ExternalAuthConfigOptions exists to provide additional functionality ontop
1528// of the standard "validate" url. Some providers like github we actually parse

Callers 3

TestFakeIDPBasicFlowFunction · 0.95
TestIDPIssuerMismatchFunction · 0.95
TestConstantQueryParamsFunction · 0.80

Calls 3

SetCoderdCallbackMethod · 0.95
ServeHTTPMethod · 0.45
ResultMethod · 0.45

Tested by 3

TestFakeIDPBasicFlowFunction · 0.76
TestIDPIssuerMismatchFunction · 0.76
TestConstantQueryParamsFunction · 0.64