Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnonAccountDefaultUsername = "prn:pantahub.com:auth:/anon"
View Source
var DefaultAccounts = map[string]accounts.Account{ "prn:pantahub.com:auth:/admin": { ID: adminObjectID, Type: accounts.AccountTypeAdmin, Prn: "prn:pantahub.com:auth:/admin", Nick: "admin", Email: "no-reply-admin@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "admin", }, "prn:pantahub.com:auth:/user1": { ID: user1ObjectID, Type: accounts.AccountTypeUser, Prn: "prn:pantahub.com:auth:/user1", Nick: "user1", Email: "no-reply-user1@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "user1", }, "prn:pantahub.com:auth:/user2": { ID: user2ObjectID, Type: accounts.AccountTypeUser, Prn: "prn:pantahub.com:auth:/user2", Nick: "user2", Email: "no-reply-user2@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "user2", }, "prn:pantahub.com:auth:/user3": { ID: user3ObjectID, Type: accounts.AccountTypeUser, Prn: "prn:pantahub.com:auth:/user3", Nick: "user3", Email: "no-reply-user3@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "user3", }, "prn:pantahub.com:auth:/examples": { ID: examplesObjectID, Type: accounts.AccountTypeUser, Prn: "prn:pantahub.com:auth:/examples", Nick: "examples", Email: "no-reply-examples@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "examples", }, "prn:pantahub.com:auth:/device1": { ID: device1ObjectID, Type: accounts.AccountTypeDevice, Prn: "prn:pantahub.com:auth:/device1", Nick: "device1", Email: "no-reply-device1@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "device1", }, "prn:pantahub.com:auth:/device2": { ID: device2ObjectID, Type: accounts.AccountTypeDevice, Prn: "prn:pantahub.com:auth:/device2", Nick: "device2", Email: "no-reply-device2@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "device2", }, "prn:pantahub.com:auth:/service1": { ID: service1ObjectID, Type: accounts.AccountTypeService, Prn: "prn:pantahub.com:auth:/service1", Nick: "service1", Email: "no-reply-service1@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: utils.GetEnv("PANTAHUB_DEMOACCOUNTS_PASSWORD_service1"), Oauth2RedirectURIs: []string{"https://api.fleet.pantahub.com", "https://api.fleet2.pantahub.com", "http://localhost"}, }, "prn:pantahub.com:auth:/service2": { ID: service2ObjectID, Type: accounts.AccountTypeService, Prn: "prn:pantahub.com:auth:/service2", Nick: "service2", Email: "no-reply-service2@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "service2", }, "prn:pantahub.com:auth:/service3": { ID: service3ObjectID, Type: accounts.AccountTypeService, Prn: "prn:pantahub.com:auth:/service3", Nick: "service3", Email: "no-reply-service3@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "service3", }, "prn:pantahub.com:auth:/client1": { ID: client1ObjectID, Type: accounts.AccountTypeClient, Prn: "prn:pantahub.com:auth:/client1", Nick: "client1", Email: "no-reply-service3@accounts.pantahub.com", TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "client1", Oauth2RedirectURIs: []string{"https://www.fleet.pantahub.com", "https://www.fleet2.pantahub.com", "http://localhost"}, }, AnonAccountDefaultUsername: { ID: anonObjectID, Type: accounts.AccountTypeUser, Prn: "prn:pantahub.com:auth:/anon", Nick: "anonymous", Email: AnonAccountDefaultUsername, TimeCreated: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), TimeModified: time.Date(2016, time.October, 1, 0, 0, 0, 0, time.UTC), Password: "anonymous", }, }
DefaultAccounts all hardcoded accounts for admins, devices and services
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.