Axis Customer Forum
https://custforum.axis.com/

Axis Controller not authenticate the user
https://custforum.axis.com/viewtopic.php?f=14&t=6099
Page 1 of 1

Author:  Abdul Basit [ Fri Dec 07, 2018 10:21 am ]
Post subject:  Axis Controller not authenticate the user

Hi,
we are using Axis Controller A1601. configuration controller with (Physical access controls) vapix Apis .
Axis Controller not authenticate the user,it gives Access denied because of invalid credentials (reason: Unauthorized )

Process step by step
1) Reset hardware configuration for this controller
2) Create Door

{"axtdc:SetDoor":{ "Door": [ {
"token": "Door_1",
"Name": "Front Door",
"Description": "Front door description",
"AccessTime": "PT10S",
"DefaultPriority": "",
"OpenTooLongTime": "PT10S",
"PreAlarmTime": "PT5S",
"ExtendedAccessTime": "PT30S",
"ExtendedOpenTooLongTime": "PT30S",
"PriorityConfiguration": "Standard"
} ] }}

3) Door Configuration
{"axtdc:SetDoorConfiguration":{ "DoorConfiguration": [ {
"token": "Door_1",
"DeviceUUID": "",
"DoorScheduleConfiguration": "",
"Configuration": [
{"Name": "Lock.Type",
"Value": "Standard"},
{"Name": "DoorMonitor.ValueWhenOpen",
"Value": "Input Open"},
{"Name": "DoorMonitor.ValueWhenClosed",
"Value": "Input Ground"} ]
} ] }}
4) Create Id Point
{
"axtid:SetIdPoint": {
"IdPoint": [ {
"token": "Idpoint_1",
"Name": "Name1",
"Area": "Area1",
"MinPINSize": 4,
"MaxPINSize": 4,
"EndOfPIN": "#",
"HeartbeatInterval": "PT10M",
"Location": "Loc1",
"Timeout": "PT3S",
"Action": "Action1",
"Description": "Desc1"
} ]
}
}
5) Set IdPoint Configuration
{
"axtid:SetIdPointConfiguration":{"IdPointConfiguration": [{
"token": "Idpoint_1",
"DeviceUUID": "",
"IdDataConfiguration": [""],
"Configuration": [ {"Name": "IdPoint.Reader.Type",
"Value": "Wiegand"},
{"Name": "IdPoint.LED.Type",
"Value": "SingleLED"},
{"Name": "IdPoint.LED.ActiveLevel",
"Value": "ActiveLow"},
{"Name": "IdPoint.Beeper.Type",
"Value": "ActiveLow"},
{"Name": "IdPoint.Tampering.Type",
"Value": "ActiveLow"} ]
}]
}}

6) Set IoAssignment
{
"axisio:SetIoAssignment":{
"IoAssignment":[{
"IoName":"Wiegand1",
"IoMode":"wiegand",
"IoUser":[
{
"Type":"idpoint",
"Usage":"Wiegand",
"MultiIo":false,
"token":"Idpoint_1"
}
]
}
]
}
}



7) Set Access Point

{
"pacsaxis:SetAccessPoint" : {
"AccessPoint" : [ {

"token" : "AccessPoint_1",
"Name" : "Access Point by API",
"Description": "",
"AreaFrom": "",
"AreaTo": "",
"EntityType": "tdc:Door",
"Entity": "Door_1",
"Enabled": true,
"DoorDeviceUUID": "",
"IdPointDevice": [
{
"IdPoint": "Idpoint_1",
"DeviceUUID": ""
}
],
"AuthenticationProfile": ["CardOnly"],
"Attribute": [
{
"type": "",
"Name": "Direction",
"Value": "in"
}
],
"ActionArgument": [],
"Action": "Access"
} ]
}
}
8) Set access point to access Controller


{
"pacsaxis:SetAccessController" : {
"AccessController" : [ {
"token": "Axis-accc8eb41e11 AccessController",
"Name": "AxisHalimController",
"Description" : "",
"AccessPoint" : [ "AccessPoint_1" ]
} ]
}
}


9) Set Access Profile

{
"pacsaxis:SetAccessProfile":{
"AccessProfile":[
{
"token": "DemoAccessProfile2",
"Name": "DemoAccessProfile2",
"Description": "",
"ValidFrom": "",
"ValidTo": "",
"Schedule": ["standard_always"],
"AuthenticationProfile": [],
"Attribute": [],
"AccessPolicy": [
{
"AuthorizationProfile": [],
"Attribute": [],
"Schedule": [
"standard_always"
],
"AccessPoint": "AccessPoint_1"
}
],
"Enabled": true
}
]
}
}

10) Set User
{"axudb:SetUser":{:[{"Attribute":[{"Name":"First name","Value":"Ahmad","type":"string"},{"Name":"Last name","Value":"Imran","type":"string"}],"Description":"","Name":"Ahmad, Imran"}]}}

11) Set credentials
{"pacsaxis:SetCredential":{"Credential":[{ "token": "Axis-accc8eb41e11:1544081769.867226000",
"UserToken": "Axis-accc8eb41e11:1544081769.829591000",
"Description": "",
"ValidFrom": "",
"ValidTo": "",
"Enabled": true,
"Status": "Enabled",
"IdData": [
{
"Name": "Card",
"Value": "02020029"
}
],
"Attribute": [],
"AuthenticationProfile": [],
"CredentialAccessProfile": [
{
"ValidFrom": "",
"ValidTo": "",
"AccessProfile": " DemoAccessProfile2"
}
]}]}}

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/