Changes between Version 12 and Version 13 of MapGuideRfc20
- Timestamp:
- 10/23/07 15:30:54 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc20
v12 v13 32 32 33 33 34 Expose the API:34 Add additional API to MgSite: 35 35 36 36 {{{ 37 STRING Mg UserInformation::GetUserName()38 MgByteReader* MgSite::EnumerateGroups( CREFSTRING user , CREFSTRING role)39 MgStringCollection* MgSite::EnumerateRoles( CREFSTRING user , CREFSTRING group)37 STRING MgSite::GetUserForSession() 38 MgByteReader* MgSite::EnumerateGroups( CREFSTRING user ) 39 MgStringCollection* MgSite::EnumerateRoles( CREFSTRING user ) 40 40 }}} 41 41 42 42 Make the following internal changes: 43 43 44 Append the userid (hex encoded) to the session identifier when it is created.Modify permissions on !EnumerateGroups and !EnumerateRoles so that a user can enumerate his own groups and roles.44 Modify permissions on !EnumerateGroups and !EnumerateRoles so that a user can enumerate his own groups and roles. 45 45 46 46 == Implications == 47 47 48 This RFC is strictly an API enhancement. Having the userid contained in the session identifier makes !MapGuide a little less secure. However, stealing a session identifier will compromise the user so the damage has already been done. 48 This RFC is strictly an API enhancement. !GetUserForSession exposes information already maintained by the !MapGuide Server. !EnumerateGroups and !EnumerateRoles will be implemented using existing functionality. 49 50 With the new API, hijacking a session identifier will allow access to the username, groups, and roles for a particular user. Use of HTTPS will reduce the likelihood of session hijack for web sites requiring security. 49 51 50 52 == Test Plan == 51 53 52 Write a simple app to verify that standard users can access their own groups and roles. Also validate that non-Author and non-Admin users do not have access toother groups and roles.54 Write a simple app to verify that users can access their own groups and roles and cannot access information from other groups and roles. 53 55 54 56 == Funding/Resources ==