Difference between revisions of "Current login protocols"

From Second Life Wiki
Jump to navigation Jump to search
("first" is no longer a valid start location. "home" is the correct value.)
 
(69 intermediate revisions by 8 users not shown)
Line 1: Line 1:
==Rationale==
{{Merge|Authentication Flow}}


The current login involves sending an xmlrpc message to a Second Life login server and parsing the returned value.
==Introduction==


The login parameters are all "structs": key, value pairs. All keys and values are simple key, value pairs, except the value associated with "options" which is an array of zero or more character strings. The order of the required structs doesn't seem to matter. Likewise, the character strings in the options array may appear in any order.


The information on this page will eventually be superseded by [[Login_Protocol| new login protocols]].
This page documents the log-in protocol for Second life as it  exists currently. It will eventually be replaced by the login portion of the [[Open Grid Protocol|Open Grid Protocol (OGP)]].
 
The purpose of this document and others like it is to give a detailed description of the Second Life protocols so that programmers can refer to it when implementing their own Second Life viewer without referring to or using the source code of either the Linden Lab viewer, or the libsecond life viewer. It also allows internal developers at Linden Lab to check their understanding of the current log-in protocol as they develop the new version described in the SLGOGP.
 
Working examples of this protocol are found on the links in the  [[Example_protocol_code| Example Protocol Code]] page


== Conventions ==
== Conventions ==
Line 16: Line 19:
:'represents a string that must be quoted, but how will be implementation specific' for example in LSL "" denotes a string and " will be used in place of the single quote (').
:'represents a string that must be quoted, but how will be implementation specific' for example in LSL "" denotes a string and " will be used in place of the single quote (').
:+ means to concatenate the two parts, though how will be implementation specific, for example + can be used to concatenate strings.
:+ means to concatenate the two parts, though how will be implementation specific, for example + can be used to concatenate strings.
==Log-in==
The current Second Life log-in requires the viewer to send an [http://www.xmlrpc.com/#whatIsXmlrpc http/1.1 XML-RPC] message with [[#Input parameters|specific input parameters]] to a Second Life log-in URL and parse the response for further processing. The URL is specified by using "-loginuri" in the command line parameters, as described in the [[Client_parameters|command line parameters]] page on the Second Life wiki.
===Authentication Flow===
This is a simplified version of the [[Authentication Flow|authentication  flow]], showing the major steps in the process.
[[Image:Second LIfe Login UML2.png|thumb|UML sequence diagram]]
Note: Step 5 through Step 8 establish presence after login and are documented in the [[Establishing_Avatar_Presence]] page.
;Step 1
:''Viewer'' ------------> ''Login Server'' {XML-RPC)
;Step 2
:''Login Server'' ------> ''Database''
;Step 3
:''Login Server'' -----> ''SIM in the Grid''
;Step 4
:''Login server'' ------> ''Viewer'' (XML-RPC response)
;Step 5
:''Viewer''  ------------> ''Simulator'' UseCirucuitCode (UDP expects ack)
;Step 6
:''Viewer''  ------------> ''Simulator'' CompleteAgentMovement (UDP)
;Step 7
:''Viewer''  ------------> ''Simulator'' AgentUpdate (UDP expects ack)
;Step 8
:''Simulator'' ---------> ''Viewer'' AgentMovementComplete (UDP)


==Required parameters==
===XML-RPC call===
Note: This section details Step 1 and Step 4 of the [[#Authentication Flow]].
====Input parameters====
=====Required parameters=====
The following explains the standard key value pairs, with an explanation of "options" at the end:
The following explains the standard key value pairs, with an explanation of "options" at the end:


:• "first": <first> -- first name of the avatar.
:• '''"first": <first>'''
:• "last": <last> -- last name of the avatar.
::''first name of the avatar.''
:• "passwd": '$1$' + <passwd_md5> -- the avatar password encrypted using MD5 encryption.
:• '''"last": <last>'''
:• "start": ["first" | "last" | <specific location> ] -- attempt to log in to this sim, though if it is full or not available, or the agent is not allowed, another sim will be selected by the grid from its list of choices. "First" means home location. If home is filled then the grid will try last. If last is filled and home is set, the grid will try home. In either case the last choice will be from a list of [[telehubs]]. For a log in to a specific location the format is <existing simulator>/<x>/<y>/<z> as in an [[SURL]].
::''last name of the avatar.''
:• "major": <major revision> -- the major revision number of the client as a string. Currently always 1.
:• '''"passwd": '$1$'''' + '''<passwd_md5>'''
:• "minor": <minor revision> -- the minor revision number of the client as a string.
::''the avatar password encrypted using MD5 encryption.''
:• "patch": <patch number> -- patch number of the client as a string.
:• '''"start": ["home" | "last" | <specific location> ]'''
:• "build": <build> -- build number of the client as a string.
::''attempt to log in to this sim, though if it is full or not available, or the agent is not allowed, another sim will be selected by the grid from its list of choices. "Home" means home location. If home is filled then the grid will try last. If last is filled and home is set, the grid will try home. In either case the last choice will be from a list of [[telehubs]]. For a log in to a specific location the format is "uri:<existing region name>&<x>&<y>&<z>".''
:• "platform": ["Lin" | "Mac" | "Win"] -- the platform of the client.  
:• '''"channel": <channel name>''' 
:• "mac": <MAC Address> -- the MAC address associated with the client's computer.
::''the name of the client. Used to differentiate official viewers from third party clients.''
:• "options": <optional_login> -- optional array of character strings. (See below)
:• '''"version": <version string>'''
:• "user-agent": "sl.py 0.1" -- unknown.
::''version number of the client.''
:• "id0": "" -- unknown.
:• '''"platform": ["Lin" | "Mac" | "Win"]'''
:• "agree_to_tos": ["true" | "false" | ""] -- whether or not the user has agreed to the Terms of Service.  
::''the platform of the client.''
:• "viewer_digest": "09d93740-8f37-c418-fbf2-2a78c7b0d1ea" -- unknown.
:• '''"mac": <MAC Address>'''
::''the MAC address associated with the client's computer.''
:• '''"options": [optional_login]'''
::''optional array of character strings. ([[Current_login_protocols#Optional Parameters|See Optional Parameters below]])''
:•''' "id0": "00000000-0000-0000-0000-000000000000"'''
::''hardware hash (based on the serial number of the first hard drive in Windows) used for uniquely identifying computers.''
:• '''"agree_to_tos": ["true" | "false" | ""]'''
::''whether or not the user has agreed to the Terms of Service.''
:• '''"read_critical": ["true" | "false" | ""]'''
::''whether or not the user has read important messages such as Terms of Service updates.''
:• '''"viewer_digest": "00000000-0000-0000-0000-000000000000"'''
::''MD5 hash of the viewer executable, only relevant when the channel is set to an official Second Life viewer.''
 
=====Optional Parameters=====
Zero or more of the  following character strings may appear in any order in the options array:
:[ "inventory-root" | "inventory-skeleton" | "inventory-lib-root" |
:"inventory-lib-owner" | "inventory-skel-lib" | "gestures" | "event_categories" |
:"event_notifications" | "classified_categories" | "buddy-list" | "ui-config" |
:"login-flags" | "global-textures" | "adult_compliant" ]
''See [[#Optional Response|Optional Response]] for descriptions of information returned from these options''
 
The 'adult_compliant' optional parameter is used by a viewer to indicate that it understands the 'A' or Adult region access level in addition to the standard 'PG' and 'M' settings.  See the [http://svn.secondlife.com/trac/linden/changeset/2573 code in Snowglobe] that adds this value during login.
 
You must add this to your own viewers if it is based on the Second Life 1.23 source code.  Snowglobe and later viewers will already have this flag indicating they properly process adult access levels.


==Optional Parameters==
===Response===
Zero or more of the following character strings may appear in any order in the array following the "options" keyword:  
The valid (non-error) value returned by the login call is in standard xmlrpc name, value format. The most important of these is the [[Current_login_protocols#Login_Seed-Capability|"Login Seed-Capability"]] discussed below (not to be confused with the new "seed capability" for the new login procedure):


:• "inventory-root" -- refers to the UUID of the root inventory folder in the client's inventory window
:Note: all return values are in "name: value" format as used in [http://docs.python.org/lib/typesmapping.html Python 2.5 dictionaries] unless otherwise noted.
:• "inventory-skeleton" -- unknown
:Note: [[Login_Return_Values|A complete dump of return values]] was moved to another page for clarity.
:"inventory-lib-root" -- unknown
:• "inventory-lib-owner" -- unknown
:• "inventory-skel-lib" -- unknown
:• "gestures" -- refers to the list of UUIDs that an avatar will perform
:• "event_categories" -- unknown
:• "event_notifications" -- unknown
:• "classified_categories" -- unknown
:• "buddy-list" -- unknown
:• "ui-config" -- unknown
:• "login-flags" -- unknown
:• "global-textures" unknown


==Return Value==
====Required Response====
The valid (non-error) value returned by the login call is in standard xmlrpc name, value format. The most important of these is [[#seed-capability]] discussed below:


::Note: Values associated with the optional string parameters are preceded by a "*".
:'''last_name'''
::''last name of avatar''--identical to name given in input parameters
:{ 'last_name': <last_name>}


:'''sim_ip'''
::''ip address used to establish UDP connection with startup simulator''
:{ 'sim_ip':<ip_num> }


:• last_name: lastname
:'''start_location'''
::''Result of 'start' parameter as specified in input parameters''
:{'start_location':"home" | "last" | <specific location> }


:• sim_ip: 64.129.40.58
:'''seconds_since_epoch'''
::''seconds...''    '''clarification needed'''
:'seconds_since_epoch':<int>


:• login-flags: [{'daylight_savings': 'N', 'stipend_since_login': 'N', 'gendered': 'Y', 'ever_logged_in': 'Y'}]
:'''message'''
::''message of the day from login''
:{ 'message': <string> }


:• inventory-lib-root: [{'folder_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b'}]
:'''first_name'''
::''first name of avatar''--identical to name given in input parameters
:[ 'first_name': <first_name> }


:• event_categories: [{'category_id': 18, 'category_name': 'Discussion'}, {'category_id': 19, 'category_name': 'Sports'}, {'category_id': 20, 'category_name': 'Live Music'}, {'category_id': 22, 'category_name': 'Commercial'}, {'category_id': 23, 'category_name': 'Nightlife/Entertainment'}, {'category_id': 24, 'category_name': 'Games/Contests'}, {'category_id': 25, 'category_name': 'Pageants'}, {'category_id': 26, 'category_name': 'Education'}, {'category_id': 27, 'category_name': 'Arts and Culture'}, {'category_id': 28, 'category_name': 'Charity/Support Groups'}, {'category_id': 29, 'category_name': 'Miscellaneous'}]
:'''circuit_code'''
::''used to validate UDP connection with login simulator''
:{ 'circuit_code': <int> }


:• inventory-lib-owner: [{'agent_id': 'ba2a564a-f0f1-4b82-9c61-b7520bfcd09f'}]
:'''sim_port'''
:''port used to establish UDP connection with login simulator''
::{ 'sim_port':<int> }


:• start_location: last
:'''secure_session_id'''
:''secure token for this login session--never used in UDP packets (unknown if this is unique per login or unique per simulator)'' '''clarification needed'''
::'secure_session_id': <uuid>


:• seconds_since_epoch: 1195447316
:'''look_at'''
:''initial camera direction (3D vector) of avatar''
::{ 'look_at ': r + <real>, r + <real>, r + <real> }


:• message: -=- http://blog.secondlife.com -=- Visit the Official Linden Blog for the latest world status updates!
:'''agent_id'''
::''permanent UUID of avatar''
:{ 'agent_id': <uuid> }


:• first_name: first_name
:'''inventory_host'''
::''name of database used for inventory''
:{ 'inventory_host': <name> }


:• inventory-skeleton: [{'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 6, 'name': 'Calling Cards', 'type_default': 2, 'folder_id': '072ce32a-e091-42d4-ae23-251553011f8b'}, {'parent_id': 'a78d58ec-a457-45f2-bec2-090a9f031dc2', 'version': 13, 'name': 'Male Gestures', 'type_default': -1, 'folder_id': '0d77a3c2-fbba-5172-bd23-cec8735fb029'}, {'parent_id': 'a78d58ec-a457-45f2-bec2-090a9f031dc2', 'version': 28, 'name': 'Common Gestures', 'type_default': -1, 'folder_id': '1be3f1d4-4db4-9849-8c5f-7d54d6866f93'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 7, 'name': 'Body Parts', 'type_default': 13, 'folder_id': '2271d4db-9254-49de-b544-d66eb1efd19a'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 4, 'name': 'Notecards', 'type_default': 7, 'folder_id': '2e706667-00c6-4a9a-95f1-83c65a08f893'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 8, 'name': 'Clothing', 'type_default': 5, 'folder_id': '3cbf18ff-ed8d-4e1b-ba25-9ee1
:'''region_y'''
e4225b04'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Scripts', 'type_default': 10, 'folder_id': '494154ea-ddc6-433d-a512-06a102218566'}, {'parent_id': '00000000-0000-0000-0000-000000000000', 'version': 2, 'name': 'My Inventory', 'type_default': 8, 'folder_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Photo Album', 'type_default': 15, 'folder_id': '551c87dd-8479-4129-985e-ad5b3a956807'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 8, 'name': 'Landmarks', 'type_default': 3, 'folder_id': '7036e1f1-f45d-4dbf-9953-7fd039aaf372'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Sounds', 'type_default': 1, 'folder_id': '854ad656-888d-4072-b21c-9f81ad4b573a'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Lost And Found', 'type_default': 16, 'folder_id': '8af1b224-c0d4-4062-a57e-ceaa0b80739a'}, {'parent
::''The 'y' grid coordinate of the region''
_id': '3cbf18ff-ed8d-4e1b-ba25-9ee1e4225b04', 'version': 45, 'name': 'Male Shape & Outfit', 'type_default': -1, 'folder_id': '95da8586-07f4-1113-56c7-ae3c2f3fa0b7'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 3, 'name': 'Gestures', 'type_default': 21, 'folder_id': 'a78d58ec-a457-45f2-bec2-090a9f031dc2'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 29, 'name': 'Objects', 'type_default': 6, 'folder_id': 'aa8915e6-f0ea-4679-9c7a-d28f5eee2b22'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Animations', 'type_default': 20, 'folder_id': 'bb4aa79e-0cd0-4284-bf77-321332d62739'}, {'parent_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b', 'version': 4, 'name': 'Trash', 'type_default': 14, 'folder_id': 'e87e122f-8155-bf41-3a84-ad7614737b05'}, {'parent_id': '3cbf18ff-ed8d-4e1b-ba25-9ee1e4225b04', 'version': 22, 'name': 'sai', 'type_default': -1, 'folder_id': 'eef687d0-7493-3139-1644-1fe676e7fb86'}, {'parent_id': '547448bd-4b66-4
:{ 'region_y': <int> }
bc9-bb87-2dc5c7a1fa8b', 'version': 1, 'name': 'Textures', 'type_default': 0, 'folder_id': 'f8e3725c-a294-4fce-842e-27e1b830c32b'}]


:• circuit_code: 245160577
:'''region_x'''
::''The 'x' grid coordinate of the region''
:{ 'region_x': <int> }


:• sim_port: 13005
:'''seed_capability'''
::''[Capabilities|Capability]] that provides access to various capabilities as described in [[Current_Sim_Capabilities]], the most import of these is the EventQueueGet''
:{ 'seed_capability': <[[Capabilities|capability]]> }


:• buddy-list: [{'buddy_id': '3163a2e6-0be1-4660-8412-61345692f55e', 'buddy_rights_given': 1, 'buddy_rights_has': 1}, {'buddy_id': '5b20e809-4ec4-47e2-9141-83bf7878afa7', 'buddy_rights_given': 1, 'buddy_rights_has': 1}, {'buddy_id': 'aaabdfb6-8438-4485-b98c-20b6416d0a69', 'buddy_rights_given': 1, 'buddy_rights_has': 1}, {'buddy_id': 'b3ff9eb4-ca7d-4dae-bd3c-bfbed6e3fbac', 'buddy_rights_given': 1, 'buddy_rights_has': 1}, {'buddy_id': 'eeaedeb6-c702-472a-b725-e4492095c69a', 'buddy_rights_given': 1, 'buddy_rights_has': 1}]
:'''agent_access: M'''
::''authorization  information about access to main/mature grid as opposed to teen grid'' '''clarification needed'''
:{ 'agent_access': <'M'|'T'> }


:• inventory-skel-lib: [{'parent_id': '5b064c39-607c-2ced-d5d4-a124a267bbb7', 'version': 2, 'name': 'Sculpt Textures', 'type_default': -1, 'folder_id': '00a9afce-5661-a7a0-c9b6-a79ebc0aaa91'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 11, 'name': 'Misc Textures', 'type_default': -1, 'folder_id': '089ea65b-4ecf-f16d-1290-95d36588b80d'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Irish Lass', 'type_default': -1, 'folder_id': '15cafc5d-b7f9-75ad-938a-49aebd99c27c'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 1, 'name': 'Atoll continent stuff', 'type_default': -1, 'folder_id': '1a189e4c-71df-be20-f67d-93eea2170b09'}, {'parent_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0', 'version': 69, 'name': 'Other Gestures', 'type_default': -1, 'folder_id': '1ace1c79-4125-fcbe-bf02-cf84514e0f78'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 1, 'name': 'Animations', 'type_default': 20, 'folder_id': '1b80d6c4-9
:'''session_id'''
64f-bece-8b2d-f8af13fb4915'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 6, 'name': 'Body Parts', 'type_default': 13, 'folder_id': '1bfc19fc-6a63-3dd6-ad50-161711941610'}, {'parent_id': '00000000-0000-0000-0000-000000000000', 'version': 92, 'name': 'Library', 'type_default': 8, 'folder_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 16, 'name': 'Female Shape & Outfit', 'type_default': -1, 'folder_id': '1c7e4cf3-675d-97a5-7ea6-6c61e99e4a25'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 9, 'name': 'Landscaping', 'type_default': -1, 'folder_id': '1d92e88c-698b-1493-2d67-39e59536bd04'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 1, 'name': 'Road Textures', 'type_default': -1, 'folder_id': '1e986366-0cb1-c557-7784-914dfe334bc3'}, {'parent_id': '1bfc19fc-6a63-3dd6-ad50-161711941610', 'version': 1, 'name': "Hair - Women's", 'type_default': -1, 'folder_id': '1f10e3f5-
::"UUID for  current session with simulator. used in UDP message passing'' '''clarification needed'''
ed21-49f0-5eb7-c8e47f4e556d'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Nightclub Female', 'type_default': -1, 'folder_id': '21617ba6-3be6-ae19-5bea-187271ba98e6'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Ruth', 'type_default': -1, 'folder_id': '223e8dee-a7ce-ee79-6755-09c210ea6a73'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Cybergoth Female', 'type_default': -1, 'folder_id': '22bd7b4e-b32d-91a3-cd69-e50ed03ce4d8'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 1, 'name': 'Business', 'type_default': -1, 'folder_id': '240942f6-362d-59c3-412c-776e0e09c9af'}, {'parent_id': '68b1584f-bad8-6594-0dcb-3da2471c0ae2', 'version': 1, 'name': 'Particle System', 'type_default': -1, 'folder_id': '257acf7b-fc86-f4ef-8244-38245d609918'}, {'parent_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name': 'Terrain Textures - Islands', 'type_default': -1, 'folder_id': '
:{'session_id': <uuid> }
269c4fca-c0fb-a765-2f2c-a2e09dfb4b32'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 4, 'name': 'Telehubs', 'type_default': -1, 'folder_id': '299124cf-b626-f13e-edb8-df6debc5e25a'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 1, 'name': 'Dominos', 'type_default': -1, 'folder_id': '2b28a8dc-6ced-600b-6158-26171a7b44ad'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 1, 'name': 'Sounds', 'type_default': 1, 'folder_id': '2bb04b35-a411-1682-85f1-ef97c0ab5621'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Little Red Riding Hood', 'type_default': -1, 'folder_id': '2dd24596-8706-1771-a383-865bcd82cfa4'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 8, 'name': 'Gestures', 'type_default': 21, 'folder_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'City Chic Female', 'type_default': -1, 'folder_id': '3092d8ff-0
d06-64b6-84b2-814e59523d81'}, {'parent_id': '5b064c39-607c-2ced-d5d4-a124a267bbb7', 'version': 3, 'name': 'Surface Textures', 'type_default': -1, 'folder_id': '311caaa4-5a1c-235a-5e1f-5e395bef71bc'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Groupie Chick', 'type_default': -1, 'folder_id': '31919c06-855f-509f-cd92-2588229593f4'}, {'parent_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0', 'version': 1, 'name': 'Male Gestures', 'type_default': -1, 'folder_id': '3550b164-9362-46b8-d377-f0064c8db3b8'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 23, 'name': 'Floor Tile', 'type_default': -1, 'folder_id': '38fc02ce-9a62-8f80-2dc6-1caaa92f52be'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'City Chic Male', 'type_default': -1, 'folder_id': '41743b67-6cde-5496-6be4-4751c684f715'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 19, 'name': 'Sculpt Prims - Examples', 'type_default': -1, 'folder_i
d': '4341aa8e-970f-cd33-51fb-4cb5b02dd387'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Goth Female', 'type_default': -1, 'folder_id': '4ffd5f38-5c7a-3a73-505f-3575951d5240'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 87, 'name': 'Clothing', 'type_default': 5, 'folder_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6'}, {'parent_id': '1bfc19fc-6a63-3dd6-ad50-161711941610', 'version': 1, 'name': "Hair - Men's", 'type_default': -1, 'folder_id': '5603b09d-0579-b03a-6f5c-d5208e79415e'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 13, 'name': 'Dirt, Sand, Ground', 'type_default': -1, 'folder_id': '579b4127-d7df-c8bf-bb73-811a618661db'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 31, 'name': 'Atoll Textures', 'type_default': -1, 'folder_id': '588a92f7-1b3c-ff87-15cd-9045c3862d52'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 17, 'name': 'Wallpaper', 'type_default': -1, 'folder_id
': '58f5cec2-8392-ac4c-c453-cb2dee1241bb'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 1, 'name': 'Sculpt Textures', 'type_default': -1, 'folder_id': '5b064c39-607c-2ced-d5d4-a124a267bbb7'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Fireman', 'type_default': -1, 'folder_id': '5c096e4e-4a41-a4ee-cf4f-e07825ea4669'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 1, 'name': 'Household', 'type_default': -1, 'folder_id': '5df84333-610d-1737-eb9d-e64f873bc91c'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Female Shape & Outfit 3', 'type_default': -1, 'folder_id': '631ea3c6-db9a-952c-4248-9ff1b756e7ca'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 151, 'name': 'Objects', 'type_default': 6, 'folder_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 78, 'name': 'Fabric', 'type_default': -1, 'folder_id': '66f
abba2-ecae-bd3d-d426-8bdcd145c01c'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 10, 'name': 'Wood', 'type_default': -1, 'folder_id': '677ede83-2384-1d86-2b1f-29744dc216a6'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 1, 'name': 'Waterfalls', 'type_default': -1, 'folder_id': '68b1584f-bad8-6594-0dcb-3da2471c0ae2'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 51, 'name': 'Avatar Body and Clothing Templates', 'type_default': -1, 'folder_id': '6d83a4c1-98af-8912-3154-6028a4137467'}, {'parent_id': '2bb04b35-a411-1682-85f1-ef97c0ab5621', 'version': 1, 'name': 'Gesture sounds', 'type_default': -1, 'folder_id': '744aa72b-eb07-02ed-b344-0f81a16f073a'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Nightclub Male', 'type_default': -1, 'folder_id': '7f16b6a5-0958-3244-d90a-82def97efd57'}, {'parent_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name': 'Terrain Textures - Default Set', 'type
_default': -1, 'folder_id': '809d37d7-9a9a-da85-08ea-254ba338bf3b'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 3, 'name': 'Orientation stations w/ notecards', 'type_default': -1, 'folder_id': '8100d5db-cb56-bc75-0710-aa6b6e1ae162'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 7, 'name': 'Furry Male Outfit', 'type_default': -1, 'folder_id': '8166a9cc-443d-c43e-f7af-f3c627b40036'}, {'parent_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0', 'version': 37, 'name': 'Common Gestures', 'type_default': -1, 'folder_id': '86814812-7bce-bc61-2c33-d508ca7b8dcd'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 16, 'name': 'Landmarks', 'type_default': 3, 'folder_id': '88ede071-ba7c-8288-5f1d-4cbb202117a5'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 4, 'name': 'Hair Textures', 'type_default': -1, 'folder_id': '8bdc580f-d8e5-0cc8-a125-e4d1eda19c27'}, {'parent_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name
': 'Terrain Textures - NW Coastal', 'type_default': -1, 'folder_id': '90c11ca9-fea3-58a2-72ad-07abeab0752e'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 8, 'name': 'Furry Female Outfit', 'type_default': -1, 'folder_id': '964ef3b2-ff95-3f5f-f741-a5a093582b33'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 6, 'name': 'Terrain Textures', 'type_default': -1, 'folder_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 10, 'name': 'Male Shape & Outfit', 'type_default': -1, 'folder_id': '9b6dfef7-544d-bc06-c29a-32635c929396'}, {'parent_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name': 'Atoll terrain textures', 'type_default': -1, 'folder_id': 'a18b5df1-f967-084d-f680-82b501018b1c'}, {'parent_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0', 'version': 1, 'name': 'Female Gestures', 'type_default': -1, 'folder_id': 'a3cb2e10-cf0a-8bf5-e495-16f1c4e2c30b'}, {'parent_id': '68b1584f-bad8
-6594-0dcb-3da2471c0ae2', 'version': 6, 'name': 'Particle System', 'type_default': -1, 'folder_id': 'a5012dce-abfd-8f90-ef84-61c79552054a'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 9, 'name': 'Accessories', 'type_default': -1, 'folder_id': 'abdace20-c471-df45-e6f8-731df6454547'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 270, 'name': 'Textures', 'type_default': 0, 'folder_id': 'afd25620-d379-4c16-ed03-b4a18967472c'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Male Shape & Outfit 3', 'type_default': -1, 'folder_id': 'b0529a99-bd7d-f75c-e982-a691f50fdf3d'}, {'parent_id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name': 'Terrain Textures - Winter', 'type_default': -1, 'folder_id': 'be1efbab-4aec-686f-9740-20bc7ffab541'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Cybergoth Male', 'type_default': -1, 'folder_id': 'be5a13e9-4d1b-745e-5144-b46550317e84'}, {'parent_
id': '9732c8e2-3188-1e04-d0cf-6fe957ea4979', 'version': 1, 'name': 'Terrain Textures - Primitive Island', 'type_default': -1, 'folder_id': 'c1b1d0cd-87a3-aafb-e0e7-681bafddd66e'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Prince Charming', 'type_default': -1, 'folder_id': 'c6d679a4-9cee-0bb7-17c1-fe94f1e701db'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 5, 'name': 'More Outfits', 'type_default': -1, 'folder_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 5, 'name': 'Trees, plants and grasses', 'type_default': -1, 'folder_id': 'cd29debb-868e-35c8-41a2-93594c54d772'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 4, 'name': 'Goth Male', 'type_default': -1, 'folder_id': 'd05cd8f5-381e-fd60-8778-4d2974219319'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 6, 'name': 'Harajuku Female', 'type_default': -1, 'folder_id': 'd0a747f1-f7c3-
8c0c-be12-20df046f2277'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 20, 'name': 'Buildings', 'type_default': -1, 'folder_id': 'd6666744-7931-9888-027f-61f90186eb1e'}, {'parent_id': 'c9ea5076-9334-d847-f072-1cf56a1d52d8', 'version': 1, 'name': 'Gi', 'type_default': -1, 'folder_id': 'd902ac38-479c-245b-22f0-fdc3ea2ffcd0'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 26, 'name': 'Notecards', 'type_default': 7, 'folder_id': 'dc306e42-78b7-8e3c-e8d0-69aad9a9f39b'}, {'parent_id': '51ba6e1b-e503-9b98-d9df-b0664d5457d6', 'version': 3, 'name': 'Harajuku Male', 'type_default': -1, 'folder_id': 'e09c947b-0a2a-c383-d55a-68f93ec9d4f2'}, {'parent_id': '6371a71c-7fc2-c38f-f87c-f0933868fd73', 'version': 1, 'name': 'Walkways', 'type_default': -1, 'folder_id': 'e7b66ed2-a8ce-3e59-1f3e-83788e1fe866'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 24, 'name': 'Photo Album', 'type_default': 15, 'folder_id': 'eb2010ea-1f78-a93b-ae89-217345b47fd1
'}, {'parent_id': 'afd25620-d379-4c16-ed03-b4a18967472c', 'version': 1, 'name': 'Rock', 'type_default': -1, 'folder_id': 'ede89e78-9eed-d4a4-c320-2db92649eba5'}, {'parent_id': '1c7a7fd0-104e-a8b1-51c6-32ea9b08e38b', 'version': 1, 'name': 'Scripts', 'type_default': 10, 'folder_id': 'f7cfde4d-3b16-54b3-2169-72d390d1065e'}, {'parent_id': '2e4ded39-d0d7-87fb-27e9-ca1bd01fd6c0', 'version': 4, 'name': 'Speech Gestures', 'type_default': -1, 'folder_id': 'fd05f2bf-5d8a-ffb3-40d4-48a9b9084c3c'}]


:• secure_session_id: fdb501ca-22f1-4470-b515-2650f54b8117
:'''login'''
::''...'' '''clarification needed'''
:{ 'login': 'true' }


:• look_at: [r-0.85717299999999996274,r0.51502899999999995906,r0]
====Optional Response====


:• classified_categories: [{'category_id': 1, 'category_name': 'Shopping'}, {'category_id': 2, 'category_name': 'Land Rental'}, {'category_id': 3, 'category_name': 'Property Rental'}, {'category_id': 4, 'category_name': 'Special Attraction'}, {'category_id': 5, 'category_name': 'New Products'}, {'category_id': 6, 'category_name': 'Employment'}, {'category_id': 7, 'category_name': 'Wanted'}, {'category_id': 8, 'category_name': 'Service'}, {'category_id': 9, 'category_name': 'Personal'}]
:'''inventory-root'''  
::''UUID of the agent’s root inventory folder.''
:{ 'inventory-root': [{'folder_id': <uuid>}] }


:• gestures: [{'asset_id': '43417d10-a2f7-7727-6fd4-dd7f04ad7a13', 'item_id': '0405171b-190e-6e35-dedb-8be1eddfe609'}, {'asset_id': 'af2b8320-e579-2c41-b717-969759aeb3ca', 'item_id': '06d995f7-8184-d4c8-51d2-f99faadf6dd3'}, {'asset_id': '40b92916-8055-2562-008f-58924bd0e03c', 'item_id': '0ff437b5-4362-814e-7759-b2cdac564afd'}, {'asset_id': '76f7ced2-4f91-31c8-ff7d-e76b19abfa40', 'item_id': '220fef18-4ab8-2575-f6c1-af3f0d8160f8'}, {'asset_id': 'fb262981-4295-f048-c280-629081bf3b6b', 'item_id': '2628556d-57b0-3a26-fa79-b517ef16192f'}, {'asset_id': '6212ffdd-d447-a92f-18f3-8cb94a799d83', 'item_id': '347dc0a9-4272-399b-450e-15d4d78c52d6'}, {'asset_id': 'c63ac707-6325-14c8-d681-54b81d0dff77', 'item_id': '34f897bf-8922-1e8c-fdac-98a0f5a9eb0b'}, {'asset_id': 'd918a0d8-7291-ce83-762f-3f68dcc7402d', 'item_id': '37e5c513-149a-1a0a-ef47-c831548a30dd'}, {'asset_id': 'dbd054f1-132b-cc22-e46a-bad83c230c91', 'item_id': '3db7f1b9-b1f9-9fd2-3f65-d3e21d24b58c'}, {'asset_id': '0247dbfa-f37e-64ab-d09f-267888
:'''inventory-skeleton'''  
4c7f4a', 'item_id': '3e65ec68-bdba-af60-d798-841a075cf17f'}, {'asset_id': '5a68100b-e6ba-5170-649c-80beddc67035', 'item_id': '44bf7318-21f4-32ad-d185-4e49e1a321de'}, {'asset_id': '865c5fe0-aafb-671a-8ad5-778beb24b6f8', 'item_id': '47a5b60f-0a2e-fda6-4bf4-1ff4566cf16a'}, {'asset_id': 'ea9ab69b-c2c7-3e18-a50b-37a9cfe457cd', 'item_id': '49b0ef41-9a33-067b-e9b7-dd2623db29eb'}, {'asset_id': '8868cfa3-5b82-97ab-dc38-ded906f7fd90', 'item_id': '634264c1-e98e-09a8-4782-c94bd2860c49'}, {'asset_id': '0401dc30-0fdd-1fc3-3e51-c683fe117184', 'item_id': '640b7215-02a9-e514-52c5-82a142f2e905'}, {'asset_id': '00b48fa0-ac43-fadf-d061-6b726a24a90a', 'item_id': '680923c5-100c-36b7-c644-c0d7a05913a0'}, {'asset_id': '52d9684f-2dcf-c252-2360-186b4236d07e', 'item_id': '6a972484-7490-fe5c-e526-ba75c111e37c'}, {'asset_id': '8b753e16-bd7d-2bb3-7765-671b7b31e77c', 'item_id': '6e548cd2-9c74-6112-ef7c-fdc38db91770'}, {'asset_id': 'f2483d55-bc31-38c0-65b2-9f7e87fce5c4', 'item_id': '7d65f0e3-1fd9-c81f-a61e-5de356f0eb
::''Initial list of folders in agent’s inventory. Returned as an array of five-entry dictionaries. Each dictionary element describes a folder with its name, version, type, its UUID, and the UUID of the containing folder.''
47'}, {'asset_id': '0eeb5ef7-10dd-4e4a-11a5-d053011fcdf2', 'item_id': '7e783987-2367-5276-bd27-78ac2667fef9'}, {'asset_id': '4b30f435-499f-32fe-f2a0-7e7bce8d881d', 'item_id': '7f05c4bf-a75c-847a-c018-bca16800b400'}, {'asset_id': 'aca78492-0487-03ec-4eb5-5c8e76c837e1', 'item_id': '7fffb1ef-38b5-82da-3076-4e9c0f443b2e'}, {'asset_id': '76d30ee1-c369-12ec-8dbc-9cf2f51120ff', 'item_id': '80f8c94a-a2d2-01eb-32bd-4cf1fe830383'}, {'asset_id': '0813d01a-d3d3-32a4-48a3-26b6e1e01e39', 'item_id': '83c4e26a-99e2-8f5e-1763-033a3a55d4f1'}, {'asset_id': 'fc3de4b8-bd3e-662b-934c-b72714dab5bf', 'item_id': '88754d75-93c6-c8e6-5fe8-7b9421b977b3'}, {'asset_id': 'b5ea617e-47cf-612b-2d99-8c6f6dcac218', 'item_id': '9148e1eb-e00c-2ef2-8bde-c3906baf885c'}, {'asset_id': 'a6a09cb1-0845-5ec0-051e-16bb79b30ddf', 'item_id': '97484726-f41d-9108-7678-93ba974d81c7'}, {'asset_id': 'ba38eeb2-d35f-0a07-0c04-0eb42fcc6010', 'item_id': '9ac86c71-c02b-ed95-6577-36eee67b7b73'}, {'asset_id': 'b57c996d-cb06-43c8-749d-e9ce361f172
:{'inventory-skeleton': [{'parent_id': <uuid>, 'version': <int>, 'name': <name>, 'type_default': <int>, 'folder_id': <uuid>},  .... ]}
e', 'item_id': '9bbbb8a1-2c75-87de-beed-eb15f5d74294'}, {'asset_id': '0a3336cf-3ad1-012a-91c2-5b5620aaaef3', 'item_id': '9bc6a34e-50a0-2248-2717-8a5524910ad0'}, {'asset_id': '1910ffbd-096c-5eb7-19f5-8c99ab6a748c', 'item_id': 'a6087696-9d56-e1c6-eca2-8bacdbf71e3c'}, {'asset_id': '04608b19-1668-399c-5790-b7df8d9dc9cf', 'item_id': 'a9d1a261-9632-6920-c0d7-2b3dfd9442c0'}, {'asset_id': '66ecd9bd-22e1-2633-f41e-ad1a38205662', 'item_id': 'ada896bc-52ae-f237-2a75-4e75179cceb1'}, {'asset_id': 'e7584536-86f2-c962-405d-d14adff71f38', 'item_id': 'adc59624-b875-de11-2bfe-236a2c610b8f'}, {'asset_id': '97c5742d-1d74-9408-2bae-9738a9e9d084', 'item_id': 'b1342b43-060d-492c-41a6-be0439839564'}, {'asset_id': '44a87e64-2d78-14b7-1cde-ac0f5031621f', 'item_id': 'c5853f4c-855f-4013-ce92-aabc59f1b9d8'}, {'asset_id': '2d03fd78-92fc-ca52-aabb-a4904e1339d1', 'item_id': 'e6fe4144-926c-ef17-c009-93227c7b159a'}, {'asset_id': 'b6f560d1-e2ad-24df-344c-2943c47a6775', 'item_id': 'f6f78510-02e7-526c-b35d-53cfd0b30361'},
  {'asset_id': 'fa743da9-7e6e-d88e-3e4f-143dcb4fc01b', 'item_id': 'f92824f0-8129-b36d-f5b2-652762433e0a'}, {'asset_id': '0ce71257-7a07-257f-f023-fd68575a3a4e', 'item_id': 'fa184fed-6946-ec33-5fef-bcea29e2c8d7'}]


:inventory-root: [{'folder_id': '547448bd-4b66-4bc9-bb87-2dc5c7a1fa8b'}]
:'''inventory-lib-root'''
::''folder_id of library root inventory folder.''
:{ 'inventory-lib-root': [{'folder_id': <uuid>}] }


:agent_id: d5f403c7-7981-425d-a0b5-c65a3d0a4693
:'''inventory-lib-owner'''
::''agent_id of owner for inventory lib. Used to establish common inventory library for all avatars in Second Life'' 
'''Note''': Not the same as the agent_id in the [[#Required_Response |required response]] section
:{ 'inventory-lib-owner': [{'agent_id': <uuid>}] }


:• inventory_host: inv12-mysql
:'''inventory-skel-lib'''
::''Initial list of folders in agent’s inventory. Returned as an array of five element dictionaires. Each dictionary describes a folder with its name, its UUID, the UUID of the containing folder, its type, its version.''
:{'inventory-skeleton':  [{'parent_id': <uuid>, 'version': <int>, 'name': <name>, 'type_default': <int>, 'folder_id': <uuid>},... ]}


:• ui-config: [{'allow_first_life': 'Y'}]
:'''gestures'''
::''List of active gestures. An array of two element dictionaries with the inventory item uuid and the asset uuid.''
:{ 'gestures':  [{'item_id': <uuid>, 'asset_id': <uuid>},...] }


:• global-textures: [{'sun_texture_id': 'cce0f112-878f-4586-a2e2-a8f104bba271', 'cloud_texture_id': 'fc4b9f0b-d008-45c6-96a4-01dd947ac621', 'moon_texture_id': 'd07f6eed-b96a-47cd-b51d-400ad4a1c428'}]
:'''event_categories''' 
::''List of different event categories, mapping category id (an integer) to a category name. Returned as an array of two element dictionaries. Each dictionary describes a category’s id and it’s name.''
:{ 'event_categories': [{'category_id': <int>, 'category_name': <name>},...] }


:• region_y: 244992
:'''event_notifications'''
::''List of events for which the agent has pending notifications. An array of eight-element dictionaries containing: event_id, event_name, event_desc, event_date, grid_x, grid_y, x_region, y_region.''
:{'events': [{"event_id":<uuid>, "event_name"<name>,"event_desc":<string>, "event_date":<date>, "grid_x":<float>, "grid_y":<float>, "x_region":<float>, "y_region":<float>}, ...]}
                 
:'''classified_categories"'''
::''List of classifieds categories, mapping category id (an integer) to a category. Returned as an array of two element dictionaries with a category’s id and it’s name.''
:{ 'event_categories': [{'category_id': <int>, 'category_name': <name>},...] }
         
:'''buddy-list'''
::''List of friends with granted and given rights masks. Returned as an array  of three-element dictionaries with riend’s agent id, granted rights mask, given rights mask.''
:{ 'buddy-list':[{'buddy_id': <uuid>', 'buddy_rights_given': <int>, 'buddy_rights_has': <int>}, ....] }
           
:'''ui-config'''
::''list of UI enabled/disabled states, currently: allow_first_life ('Y' or 'N') for teens.'' 
:{ 'ui-config': {'allow_first_life': if allow first life} }


:• region_x: 247808
:'''login-flags''' 
::''Several flags about the state of the agent.''
:{ 'login-flags': {'stipend_since_login': <'Y'|'N'>,  'ever_logged_in': <'Y'|'N'>, 'gendered': <'Y'|'N'>, 'daylight_savings': <'Y'|'N'>} }


:• seed_capability: https://sim2054.agni.lindenlab.com:12043/cap/d373fdc9-d275-e484-3ad2-4a9b231f4e34
:'''global-textures'''
::''The asset ids of several global textures.''
:{ 'global-textures': {'sun_texture_id': <uuid>, 'moon_texture_id': <uuid>, 'cloud_texture_id': <uuid>} }


:• agent_access: M
:'''adult_compliant'''
::''No special data returned, but this parameter indicates the viewer understands the 'Adult' region access level''


:• session_id: 65a7213a-723a-4fcf-baca-7b247c4b43c5
==Login Seed-Capability==


:• event_notifications: []
The current Login Seed-Capability is a [[Capabilities|Capability]] associated with the login sim. It should not be confused with the [[Seed-Capability|Seed-Capability]] proposed for the new protocols.


:• login: true
See [[Current_Sim_Capabilities|Current Sim Capabilities]] for more info.


==External Links==
==External Links==


[http://www.libsecondlife.org/wiki/Login] -- libsl login page, includes sample code.
[http://www.libsecondlife.org/wiki/Login] -- libsl login page, includes sample code.
[[Category: AW Groupies]]

Latest revision as of 13:04, 22 July 2022

Introduction

This page documents the log-in protocol for Second life as it exists currently. It will eventually be replaced by the login portion of the Open Grid Protocol (OGP).

The purpose of this document and others like it is to give a detailed description of the Second Life protocols so that programmers can refer to it when implementing their own Second Life viewer without referring to or using the source code of either the Linden Lab viewer, or the libsecond life viewer. It also allows internal developers at Linden Lab to check their understanding of the current log-in protocol as they develop the new version described in the SLGOGP.

Working examples of this protocol are found on the links in the Example Protocol Code page

Conventions

On this page the following conventions are used:

"in quotes is a literal string"
[ represents a list of choices | separated by a vertical bar ]
< represents a value which can be substituted by an appropriate string described inside >
'represents a string that must be quoted, but how will be implementation specific' for example in LSL "" denotes a string and " will be used in place of the single quote (').
+ means to concatenate the two parts, though how will be implementation specific, for example + can be used to concatenate strings.

Log-in

The current Second Life log-in requires the viewer to send an http/1.1 XML-RPC message with specific input parameters to a Second Life log-in URL and parse the response for further processing. The URL is specified by using "-loginuri" in the command line parameters, as described in the command line parameters page on the Second Life wiki.

Authentication Flow

This is a simplified version of the authentication flow, showing the major steps in the process.

UML sequence diagram

Note: Step 5 through Step 8 establish presence after login and are documented in the Establishing_Avatar_Presence page.


Step 1
Viewer ------------> Login Server {XML-RPC)
Step 2
Login Server ------> Database
Step 3
Login Server -----> SIM in the Grid
Step 4
Login server ------> Viewer (XML-RPC response)
Step 5
Viewer ------------> Simulator UseCirucuitCode (UDP expects ack)
Step 6
Viewer ------------> Simulator CompleteAgentMovement (UDP)
Step 7
Viewer ------------> Simulator AgentUpdate (UDP expects ack)
Step 8
Simulator ---------> Viewer AgentMovementComplete (UDP)

XML-RPC call

Note: This section details Step 1 and Step 4 of the #Authentication Flow.

Input parameters

Required parameters

The following explains the standard key value pairs, with an explanation of "options" at the end:

"first": <first>
first name of the avatar.
"last": <last>
last name of the avatar.
"passwd": '$1$' + <passwd_md5>
the avatar password encrypted using MD5 encryption.
"start": ["home" | "last" | <specific location> ]
attempt to log in to this sim, though if it is full or not available, or the agent is not allowed, another sim will be selected by the grid from its list of choices. "Home" means home location. If home is filled then the grid will try last. If last is filled and home is set, the grid will try home. In either case the last choice will be from a list of telehubs. For a log in to a specific location the format is "uri:<existing region name>&<x>&<y>&<z>".
"channel": <channel name>
the name of the client. Used to differentiate official viewers from third party clients.
"version": <version string>
version number of the client.
"platform": ["Lin" | "Mac" | "Win"]
the platform of the client.
"mac": <MAC Address>
the MAC address associated with the client's computer.
"options": [optional_login]
optional array of character strings. (See Optional Parameters below)
"id0": "00000000-0000-0000-0000-000000000000"
hardware hash (based on the serial number of the first hard drive in Windows) used for uniquely identifying computers.
"agree_to_tos": ["true" | "false" | ""]
whether or not the user has agreed to the Terms of Service.
"read_critical": ["true" | "false" | ""]
whether or not the user has read important messages such as Terms of Service updates.
"viewer_digest": "00000000-0000-0000-0000-000000000000"
MD5 hash of the viewer executable, only relevant when the channel is set to an official Second Life viewer.
Optional Parameters

Zero or more of the following character strings may appear in any order in the options array:

[ "inventory-root" | "inventory-skeleton" | "inventory-lib-root" |
"inventory-lib-owner" | "inventory-skel-lib" | "gestures" | "event_categories" |
"event_notifications" | "classified_categories" | "buddy-list" | "ui-config" |
"login-flags" | "global-textures" | "adult_compliant" ]

See Optional Response for descriptions of information returned from these options

The 'adult_compliant' optional parameter is used by a viewer to indicate that it understands the 'A' or Adult region access level in addition to the standard 'PG' and 'M' settings. See the code in Snowglobe that adds this value during login.

You must add this to your own viewers if it is based on the Second Life 1.23 source code. Snowglobe and later viewers will already have this flag indicating they properly process adult access levels.

Response

The valid (non-error) value returned by the login call is in standard xmlrpc name, value format. The most important of these is the "Login Seed-Capability" discussed below (not to be confused with the new "seed capability" for the new login procedure):

Note: all return values are in "name: value" format as used in Python 2.5 dictionaries unless otherwise noted.
Note: A complete dump of return values was moved to another page for clarity.

Required Response

last_name
last name of avatar--identical to name given in input parameters
{ 'last_name': <last_name>}
sim_ip
ip address used to establish UDP connection with startup simulator
{ 'sim_ip':<ip_num> }
start_location
Result of 'start' parameter as specified in input parameters
{'start_location':"home" | "last" | <specific location> }
seconds_since_epoch
seconds... clarification needed
'seconds_since_epoch':<int>
message
message of the day from login
{ 'message': <string> }
first_name
first name of avatar--identical to name given in input parameters
[ 'first_name': <first_name> }
circuit_code
used to validate UDP connection with login simulator
{ 'circuit_code': <int> }
sim_port
port used to establish UDP connection with login simulator
{ 'sim_port':<int> }
secure_session_id
secure token for this login session--never used in UDP packets (unknown if this is unique per login or unique per simulator) clarification needed
'secure_session_id': <uuid>
look_at
initial camera direction (3D vector) of avatar
{ 'look_at ': r + <real>, r + <real>, r + <real> }
agent_id
permanent UUID of avatar
{ 'agent_id': <uuid> }
inventory_host
name of database used for inventory
{ 'inventory_host': <name> }
region_y
The 'y' grid coordinate of the region
{ 'region_y': <int> }
region_x
The 'x' grid coordinate of the region
{ 'region_x': <int> }
seed_capability
[Capabilities|Capability]] that provides access to various capabilities as described in Current_Sim_Capabilities, the most import of these is the EventQueueGet
{ 'seed_capability': <capability> }
agent_access: M
authorization information about access to main/mature grid as opposed to teen grid clarification needed
{ 'agent_access': <'M'|'T'> }
session_id
"UUID for current session with simulator. used in UDP message passing clarification needed
{'session_id': <uuid> }
login
... clarification needed
{ 'login': 'true' }

Optional Response

inventory-root
UUID of the agent’s root inventory folder.
{ 'inventory-root': [{'folder_id': <uuid>}] }
inventory-skeleton
Initial list of folders in agent’s inventory. Returned as an array of five-entry dictionaries. Each dictionary element describes a folder with its name, version, type, its UUID, and the UUID of the containing folder.
{'inventory-skeleton': [{'parent_id': <uuid>, 'version': <int>, 'name': <name>, 'type_default': <int>, 'folder_id': <uuid>}, .... ]}
inventory-lib-root
folder_id of library root inventory folder.
{ 'inventory-lib-root': [{'folder_id': <uuid>}] }
inventory-lib-owner
agent_id of owner for inventory lib. Used to establish common inventory library for all avatars in Second Life

Note: Not the same as the agent_id in the required response section

{ 'inventory-lib-owner': [{'agent_id': <uuid>}] }
inventory-skel-lib
Initial list of folders in agent’s inventory. Returned as an array of five element dictionaires. Each dictionary describes a folder with its name, its UUID, the UUID of the containing folder, its type, its version.
{'inventory-skeleton': [{'parent_id': <uuid>, 'version': <int>, 'name': <name>, 'type_default': <int>, 'folder_id': <uuid>},... ]}
gestures
List of active gestures. An array of two element dictionaries with the inventory item uuid and the asset uuid.
{ 'gestures': [{'item_id': <uuid>, 'asset_id': <uuid>},...] }
event_categories
List of different event categories, mapping category id (an integer) to a category name. Returned as an array of two element dictionaries. Each dictionary describes a category’s id and it’s name.
{ 'event_categories': [{'category_id': <int>, 'category_name': <name>},...] }
event_notifications
List of events for which the agent has pending notifications. An array of eight-element dictionaries containing: event_id, event_name, event_desc, event_date, grid_x, grid_y, x_region, y_region.
{'events': [{"event_id":<uuid>, "event_name"<name>,"event_desc":<string>, "event_date":<date>, "grid_x":<float>, "grid_y":<float>, "x_region":<float>, "y_region":<float>}, ...]}
classified_categories"
List of classifieds categories, mapping category id (an integer) to a category. Returned as an array of two element dictionaries with a category’s id and it’s name.
{ 'event_categories': [{'category_id': <int>, 'category_name': <name>},...] }
buddy-list
List of friends with granted and given rights masks. Returned as an array of three-element dictionaries with riend’s agent id, granted rights mask, given rights mask.
{ 'buddy-list':[{'buddy_id': <uuid>', 'buddy_rights_given': <int>, 'buddy_rights_has': <int>}, ....] }
ui-config
list of UI enabled/disabled states, currently: allow_first_life ('Y' or 'N') for teens.
{ 'ui-config': {'allow_first_life': if allow first life} }
login-flags
Several flags about the state of the agent.
{ 'login-flags': {'stipend_since_login': <'Y'|'N'>, 'ever_logged_in': <'Y'|'N'>, 'gendered': <'Y'|'N'>, 'daylight_savings': <'Y'|'N'>} }
global-textures
The asset ids of several global textures.
{ 'global-textures': {'sun_texture_id': <uuid>, 'moon_texture_id': <uuid>, 'cloud_texture_id': <uuid>} }
adult_compliant
No special data returned, but this parameter indicates the viewer understands the 'Adult' region access level

Login Seed-Capability

The current Login Seed-Capability is a Capability associated with the login sim. It should not be confused with the Seed-Capability proposed for the new protocols.

See Current Sim Capabilities for more info.

External Links

[1] -- libsl login page, includes sample code.