(key []byte)
| 65 | } |
| 66 | |
| 67 | func 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. |
| 75 | func TestScim(t *testing.T) { |