mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
* feat: api access tokens * revoke all user tokens * redefine access token api routes, add auto egress option to enrollment keys * fix revoked tokens to be unauthorized * remove unused functions * convert access token to sql schema * switch access token to sql schema * revoke token generated by an user * add user token creation restriction by user role * add forbidden check for access token creation * revoke user token when group or role is changed * add default group to admin users on update * fix token removal on user update * fix token removal on user update
11 lines
213 B
Go
11 lines
213 B
Go
package schema
|
|
|
|
import "github.com/gravitl/netmaker/models"
|
|
|
|
// ListModels lists all the models in this schema.
|
|
func ListModels() []interface{} {
|
|
return []interface{}{
|
|
&Job{},
|
|
&models.UserAccessToken{},
|
|
}
|
|
}
|