GetSource returns the request's authentication source: UsageSourceAPIKey, UsageSourceWeb, UsageSourceLegacy, or empty if no authentication was performed.
(c echo.Context)
| 226 | // GetSource returns the request's authentication source: UsageSourceAPIKey, |
| 227 | // UsageSourceWeb, UsageSourceLegacy, or empty if no authentication was performed. |
| 228 | func GetSource(c echo.Context) string { |
| 229 | s, _ := c.Get(contextKeySource).(string) |
| 230 | return s |
| 231 | } |
| 232 | |
| 233 | // RequireRouteFeature returns a global middleware that checks the user has access |
| 234 | // to the feature required by the matched route. It uses the RouteFeatureRegistry |
no test coverage detected