MCPcopy Create free account
hub / github.com/MITK/MITK / IsAuthExemptPath

Function IsAuthExemptPath

Modules/RESTAPI/src/mitkRestServer.cpp:105–114  ·  view source on GitHub ↗

* @brief Check if a request path is exempt from authentication. * * Health and info endpoints are always accessible without auth. */

Source from the content-addressed store, hash-verified

103 * Health and info endpoints are always accessible without auth.
104 */
105 bool IsAuthExemptPath(const std::string& path)
106 {
107 return path == "/api/v1/health" ||
108 path == "/api/v1/info" ||
109 path == "/api/v1/docs" ||
110 path == "/api/v1/docs/" ||
111 path == "/api/v1/docs/swagger-ui.css" ||
112 path == "/api/v1/docs/swagger-ui-bundle.js" ||
113 path == "/api/v1/openapi.json";
114 }
115
116 /**
117 * @brief Check if a request path is exempt from rate limiting.

Callers 1

CheckAuthenticationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected