mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-19 05:21:09 +00:00
9c6ba7e2c7
This is a new authentication system that covers all the features exposed by the server, including playback, API, metrics and PPROF, improves internal authentication by adding permissions, improves HTTP-based authentication by adding the ability to exclude certain actions from being authenticated, adds an additional method (JWT-based authentication).
16 lines
478 B
Go
16 lines
478 B
Go
package conf
|
|
|
|
// AuthInternalUserPermission is a permission of a user.
|
|
type AuthInternalUserPermission struct {
|
|
Action AuthAction `json:"action"`
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
// AuthInternalUser is an user.
|
|
type AuthInternalUser struct {
|
|
User Credential `json:"user"`
|
|
Pass Credential `json:"pass"`
|
|
IPs IPNetworks `json:"ips"`
|
|
Permissions []AuthInternalUserPermission `json:"permissions"`
|
|
}
|