add support for basic auth when calling registration_hook

This commit is contained in:
Dave Horton
2019-12-10 10:36:28 -05:00
parent b8f50a42b6
commit 4e81172c73
2 changed files with 29 additions and 5 deletions
+4
View File
@@ -134,6 +134,8 @@ CREATE TABLE IF NOT EXISTS `service_providers`
`description` VARCHAR(255),
`root_domain` VARCHAR(255) UNIQUE ,
`registration_hook` VARCHAR(255),
`hook_basic_auth_user` VARCHAR(255),
`hook_basic_auth_password` VARCHAR(255),
PRIMARY KEY (`service_provider_sid`)
) ENGINE=InnoDB COMMENT='An organization that provides communication services to its ';
@@ -162,6 +164,8 @@ CREATE TABLE IF NOT EXISTS `accounts`
`sip_realm` VARCHAR(255) UNIQUE ,
`service_provider_sid` CHAR(36) NOT NULL,
`registration_hook` VARCHAR(255),
`hook_basic_auth_user` VARCHAR(255),
`hook_basic_auth_password` VARCHAR(255),
PRIMARY KEY (`account_sid`)
) ENGINE=InnoDB COMMENT='A single end-user of the platform';
+25 -5
View File
@@ -348,12 +348,12 @@
<comment><![CDATA[A single end-user of the platform]]></comment>
<tableType><![CDATA[InnoDB]]></tableType>
<location>
<x>667.00</x>
<y>168.00</y>
<x>664.00</x>
<y>205.00</y>
</location>
<size>
<width>289.00</width>
<height>120.00</height>
<height>160.00</height>
</size>
<zorder>10</zorder>
<SQLField>
@@ -403,6 +403,16 @@
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[B81FD130-FAE7-4758-A6B7-B9B1F52F68B7]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[hook_basic_auth_user]]></name>
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[D0D88B7A-ED2D-4730-AD82-55418947EC66]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[hook_basic_auth_password]]></name>
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[2FF5162F-782B-43A5-BFF0-BD06A82387EB]]></uid>
</SQLField>
<labelWindowIndex><![CDATA[8]]></labelWindowIndex>
<objectComment><![CDATA[A single end-user of the platform]]></objectComment>
<ui.treeExpanded><![CDATA[1]]></ui.treeExpanded>
@@ -892,7 +902,7 @@
<tableType><![CDATA[InnoDB]]></tableType>
<location>
<x>653.00</x>
<y>413.00</y>
<y>443.00</y>
</location>
<size>
<width>345.00</width>
@@ -978,7 +988,7 @@
</location>
<size>
<width>293.00</width>
<height>120.00</height>
<height>160.00</height>
</size>
<zorder>9</zorder>
<SQLField>
@@ -1017,6 +1027,16 @@
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[7E44BC47-CB8A-4754-96BB-32B589B408B0]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[hook_basic_auth_user]]></name>
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[0395A96B-8229-4C65-A153-DCA83E145B7C]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[hook_basic_auth_password]]></name>
<type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[1A765999-2BB9-45ED-B840-1688EA8E8B84]]></uid>
</SQLField>
<labelWindowIndex><![CDATA[0]]></labelWindowIndex>
<objectComment><![CDATA[An organization that provides communication services to its customers using the platform]]></objectComment>
<ui.treeExpanded><![CDATA[1]]></ui.treeExpanded>