467f7b1585
This adds standard OAuth2 client credentials and bearer token support as well as scope-based authorization checks for REST API clients. Note that this initial implementation should not be used in production and that the access token limit has not been implemented yet. Signed-off-by: Michael Mayer <michael@photoprism.app>
36 lines
865 B
Go
36 lines
865 B
Go
package entity
|
|
|
|
// CreateTestFixtures inserts all known entities into the database for testing.
|
|
func CreateTestFixtures() {
|
|
if err := Admin.SetPassword("photoprism"); err != nil {
|
|
log.Error(err)
|
|
}
|
|
|
|
CreateLabelFixtures()
|
|
CreateCameraFixtures()
|
|
CreateCountryFixtures()
|
|
CreatePhotoFixtures()
|
|
CreateAlbumFixtures()
|
|
CreateServiceFixtures()
|
|
CreateLinkFixtures()
|
|
CreatePhotoAlbumFixtures()
|
|
CreateFolderFixtures()
|
|
CreateFileFixtures()
|
|
CreateKeywordFixtures()
|
|
CreatePhotoKeywordFixtures()
|
|
CreateCategoryFixtures()
|
|
CreateCellFixtures()
|
|
CreatePlaceFixtures()
|
|
CreateFileShareFixtures()
|
|
CreateFileSyncFixtures()
|
|
CreateLensFixtures()
|
|
CreateSubjectFixtures()
|
|
CreateMarkerFixtures()
|
|
CreateFaceFixtures()
|
|
CreateUserFixtures()
|
|
CreateSessionFixtures()
|
|
CreateClientFixtures()
|
|
CreateReactionFixtures()
|
|
CreatePasswordFixtures()
|
|
CreateUserShareFixtures()
|
|
}
|