ome / omero-blitz

Gradle project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
0 stars 15 forks source link

Expand user session creation abilities #80

Closed chris-allan closed 4 years ago

chris-allan commented 4 years ago

A system wide, configurable maximum time to idle and time to live is now in place. Regular users are allowed to create new sessions with timeouts up to these limits. The previous limits were 10x the default time to idle and time to live and those are now the default configured values.

Furthermore, it is now possible to pass an "omero.agent" as part of call context to set the user agent on sessions created using the session service. For example:

createUserSession(0, 600000, 'test', {'omero.agent': 'my agent'})

Finally, the following properties have been exposed to the via the configuration service so that a user may make predictable and informed choices during session creation:

chris-allan commented 4 years ago

Requires ome/omero-server#79 and ome/omero-common#21 to function but should compile. Will likely cause runtime errors without the aforementioned PRs so might need to be excluded until they are reviewed and merged.

/cc @joshmoore, @jburel

jburel commented 4 years ago

The changes do not conflict with @mtbc's work