scimGetUsers intentionally always returns no users. This is done to always force Okta to try and create each user individually, this way we don't need to implement fetching users twice. @Summary SCIM 2.0: Get users @ID scim-get-users @Security Authorization @Produce application/scim+json @Tags Ente
(rw http.ResponseWriter, r *http.Request)
| 119 | // |
| 120 | //nolint:revive |
| 121 | func (api *API) scimGetUsers(rw http.ResponseWriter, r *http.Request) { |
| 122 | if !api.scimVerifyAuthHeader(r) { |
| 123 | scimUnauthorized(rw) |
| 124 | return |
| 125 | } |
| 126 | |
| 127 | _ = handlerutil.WriteSearchResultToResponse(rw, &service.QueryResponse{ |
| 128 | TotalResults: 0, |
| 129 | StartIndex: 1, |
| 130 | ItemsPerPage: 0, |
| 131 | Resources: []scimjson.Serializable{}, |
| 132 | }) |
| 133 | } |
| 134 | |
| 135 | // scimGetUser intentionally always returns an error saying the user wasn't found. |
| 136 | // This is done to always force Okta to try and create the user, this way we |
nothing calls this directly
no test coverage detected