mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
add back in comments describing license type payload
This commit is contained in:
@@ -38,12 +38,18 @@ export default ['$rootScope', 'Rest', 'GetBasePath', 'ProcessErrors', '$q', 'Con
|
|||||||
return options;
|
return options;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Detailed mode sends:
|
||||||
|
// VisitorId: userid+hash of license_key
|
||||||
|
// AccountId: hash of license_key from license
|
||||||
setDetailed: function(options, config) {
|
setDetailed: function(options, config) {
|
||||||
// config.deployment_id is a hash of the tower license_key
|
// config.deployment_id is a hash of the tower license_key
|
||||||
options.visitor.id = $rootScope.current_user.id + '@' + config.deployment_id;
|
options.visitor.id = $rootScope.current_user.id + '@' + config.deployment_id;
|
||||||
options.account.id = config.deployment_id;
|
options.account.id = config.deployment_id;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Anonymous mode sends:
|
||||||
|
// VisitorId: <hardcoded id that is the same across all anonymous>
|
||||||
|
// AccountId: <hardcoded id that is the same across all anonymous>
|
||||||
setAnonymous: function (options) {
|
setAnonymous: function (options) {
|
||||||
options.visitor.id = 0;
|
options.visitor.id = 0;
|
||||||
options.account.id = "tower.ansible.com";
|
options.account.id = "tower.ansible.com";
|
||||||
|
|||||||
Reference in New Issue
Block a user