Autodesk 15606-011408-9330 User Guide - Page 53

Controlling User Access to Resources, Accessing Data from the Autodesk MapGuide Viewer API

Page 53 highlights

Help Index resources restricting access Controlling User Access to Resources You can control which users can access resources (SDFs, raster image files, databases, and so on) by assigning user IDs and passwords to resources using Autodesk MapGuide Server Admin. Whenever Autodesk MapGuide Viewer or Autodesk MapGuide Author requests data from a resource, the user is prompted to enter a user ID and password. Autodesk MapGuide Server then verifies that this user ID and password has been assigned to the resource and provides the data. Additionally, you can assign users to the Authors user group using Autodesk MapGuide Server Admin. When authors create maps, they can browse for available resources only if they are assigned to the Authors user group. This provides only a minimal level of security, because authors can still use a resource by typing its path, but they cannot browse for available resources without the recognized user ID and password that you specified in Autodesk MapGuide Server Admin. For more information, see "Creating and Modifying Users and Groups" on page 83. Note Be sure to run Autodesk MapGuide Server and Autodesk MapGuide Server Admin under the same account (the System account or a user account). Otherwise, the resources you see in Autodesk MapGuide Server Admin might not be the same resources that are available to Autodesk MapGuide Server. See "Configuring Autodesk MapGuide Server under a Different Account" on page 75 for more information. Accessing Data from the Autodesk MapGuide Viewer API Map authors can control whether developers can access coordinate values and map layer setup data using the API getVertices() and getLayerSetup() methods. You control the security of this data from the Map Layer Properties dialog box in Autodesk MapGuide Author. If you allow API access, you can also specify that the application must send a specific passkey first, which the application developer passes in with the unLock method. The developer can then use the getVertices() and getLayerSetup() methods to access the coordinate values and layer setup data. For more information, refer to the Autodesk MapGuide Viewer API Help. We do not recommend hard coding the passkey in your HTML application script because users can always view the source code of an HTML page. One option is to prompt users for their user IDs and passwords when they attempt to view secured data and then authenticate the user ID and password against a database on your server. Security | 53

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

Security
|
53
Controlling User Access to Resources
You can control which users can access resources (SDFs, raster image files,
databases, and so on) by assigning user IDs and passwords to resources using
Autodesk MapGuide Server Admin. Whenever Autodesk MapGuide Viewer
or Autodesk MapGuide Author requests data from a resource, the user is
prompted to enter a user ID and password. Autodesk MapGuide Server then
verifies that this user ID and password has been assigned to the resource and
provides the data.
Additionally, you can assign users to the Authors user group using Autodesk
MapGuide Server Admin. When authors create maps, they can browse for
available resources only if they are assigned to the Authors user group. This
provides only a minimal level of security, because authors can still use a
resource by typing its path, but they cannot browse for available resources
without the recognized user ID and password that you specified in Autodesk
MapGuide Server Admin. For more information, see
Creating and Modi-
fying Users and Groups
on page 83.
Note
Be sure to run Autodesk MapGuide Server and Autodesk MapGuide Server
Admin under the same account (the System account or a user account). Other-
wise, the resources you see in Autodesk MapGuide Server Admin might not be
the same resources that are available to Autodesk MapGuide Server. See
Config-
uring Autodesk MapGuide Server under a Different Account
on page 75 for
more information.
Accessing Data from the Autodesk MapGuide Viewer API
Map authors can control whether developers can access coordinate values
and map layer setup data using the API
getVertices()
and
getLayerSetup()
methods. You control the security of this data from the Map Layer Properties
dialog box in Autodesk MapGuide Author. If you allow API access, you can
also specify that the application must send a specific passkey first, which the
application developer passes in with the
unLock
method. The developer can
then use the
getVertices()
and
getLayerSetup()
methods to access the coordi-
nate values and layer setup data. For more information, refer to the
Autodesk
MapGuide Viewer API Help
.
We do not recommend hard coding the passkey in your HTML application
script because users can always view the source code of an HTML page. One
option is to prompt users for their user IDs and passwords when they attempt
to view secured data and then authenticate the user ID and password against
a database on your server.
Help Index
resources
restricting access