Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-261

Implements a token store for MongoDB

    XMLWordPrintable

    Details

    • Release Notes Description:
      Hide

      New properties have been introduced on ARender Previewer side in order to control the High-Availability deployment. A MongoDB backend is required to store sessions and OAuth2 data.

      You can find below the properties controlling this part:

      Environment Key Description
      ARENDERSRV_NUXEO_OAUTH2_STORAGE_BACKEND Backend to use to store sessions and OAuth2 data. Possible values are local and mongodb
      ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_SERVER MongoDB server URL to use (mongodb://server:27017 for instance)
      ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_DBNAME MongoDB database name to use for OAuth2 storage, default to arender
      ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_SSL Use SSL for MongoDB connection, default to false
      Show
      New properties have been introduced on ARender Previewer side in order to control the High-Availability deployment. A MongoDB backend is required to store sessions and OAuth2 data. You can find below the properties controlling this part: Environment Key Description ARENDERSRV_NUXEO_OAUTH2_STORAGE_BACKEND Backend to use to store sessions and OAuth2 data. Possible values are local and mongodb ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_SERVER MongoDB server URL to use ( mongodb://server:27017 for instance) ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_DBNAME MongoDB database name to use for OAuth2 storage, default to arender ARENDERSRV_NUXEO_OAUTH2_STORAGE_MONGODB_SSL Use SSL for MongoDB connection, default to false
    • Tags:
    • Upgrade notes:
      Hide

      Some properties to configure the ARender Previewer has been renamed:

      ARENDERSRV_NUXEO_URL -> ARENDERSRV_NUXEO_SERVER_URL
      ARENDERSRV_NUXEO_CONTEXT_PATH -> ARENDERSRV_NUXEO_SERVER_CONTEXT_PATH
      ARENDERSRV_NUXEO_ARENDER_SECRET -> ARENDERSRV_NUXEO_SERVER_ARENDER_SECRET
      

      Former properties still work but may be removed in an upcoming release.

      Show
      Some properties to configure the ARender Previewer has been renamed: ARENDERSRV_NUXEO_URL -> ARENDERSRV_NUXEO_SERVER_URL ARENDERSRV_NUXEO_CONTEXT_PATH -> ARENDERSRV_NUXEO_SERVER_CONTEXT_PATH ARENDERSRV_NUXEO_ARENDER_SECRET -> ARENDERSRV_NUXEO_SERVER_ARENDER_SECRET Former properties still work but may be removed in an upcoming release.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #12, nxplatform #13, nxplatform #14
    • Story Points:
      3

      Description

      Context

      Since NEV-41, we now have an oauth2 flow for authentication against ARender Previewer.
      This mechanism stores access token in memory which is a blocker for having ARender Previewer in HA.

      Request

      We want to implement the Spring Security interface OAuth2AuthorizedClientService to bring the MongoDB support for sharing access token/user authentication across several previewers.

      We need to have a mechanism to correctly configure this part. Mainly, we need to switch completely from in-memory to MongoDB implementation when configuration parameters say so (explore spring profile and spring condition annotation).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 3 hours
                  1w 3h