Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1400

Add support for serializing/deserializing plugin state

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: OIDC DB Auth
    • None
    • 3
    • Iteration Zebrafish, Iteration Ankylosaurus
    • Not Needed

      In preparation for Compass’s ability to persist OIDC tokens, we should add:

      • A way to get an opaque serialized (string or Uint8Array) representation of a MongoDBOIDCPlugin’s instance (auth state only, not options or similar)
      • The ability to take a “serialized state” string/blob, filter it, possibly by principal name, server metadata and/or expiration date, and then re-serialize that into a string/blob
      • A way to pass such serialized state to a new MongoDBOIDCPlugin instance and then deserialize it
      • An event that is emitted when the state that would be serialized changes

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: