MCPcopy Create free account
hub / github.com/coder/coder / setScimAuthBearer

Function setScimAuthBearer

enterprise/coderd/scim_test.go:67–72  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

65}
66
67func setScimAuthBearer(key []byte) func(*http.Request) {
68 return func(r *http.Request) {
69 // Do strange casing to ensure it's case-insensitive
70 r.Header.Set("Authorization", "beAreR "+string(key))
71 }
72}
73
74//nolint:gocritic // SCIM authenticates via a special header and bypasses internal RBAC.
75func TestScim(t *testing.T) {

Callers 1

TestScimFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected