Add support for serializing/deserializing plugin state

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: