mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-27 14:16:18 +00:00
feat: add authorize to UserProvider trait (#879)
* feat: add SchemaValidator * feat: add schema validator to mysql shim * chore: pass schema validator to http auth layer * feat: add schema validator to http * feat: add schema validator to pg * feat: add schema validator to pg * feat: add schema validator test * chore: remove println in test * chore: use !matches * refactor: refac authenticate and authorize in http auth * refactor: refac authenticate and authorize in http auth * chore: typo * chore: minor change * refactor: merge schema_validator into user_providier * chore: fix license issue * refactor: change http query param from database to db * chore: fix cr issue
This commit is contained in:
@@ -77,6 +77,8 @@ pub enum StatusCode {
|
||||
AuthHeaderNotFound = 7003,
|
||||
/// Invalid http authorization header
|
||||
InvalidAuthHeader = 7004,
|
||||
/// Illegal request to connect catalog-schema
|
||||
AccessDenied = 7005,
|
||||
// ====== End of auth related status code =====
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user