You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone been able to make msal persistence work in a container running in Codespaces?
Asking because I have a dev container that works perfectly when running in a local VS client, and the same container does not work when running in a codespace.
Specifics:
Container is configured with Debian, gnome-keyring, and dbus-x11.
I run export $(dbus-launch) to start the dbus session daemon and set the related environment variables.
I then run my MSAL code, which includes a call to PersistenceCreator.createPersistence
At this point, the version running locally shows a nice x11 UI prompting me to create a password with the prompt "Choose a password for new keyring."
The version in the codespace immediately throws an error: Uncaught PersistenceError PersistenceError: CachePersistenceError: Verifing persistence failed with the error: Error: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/collection/login
I've been troubleshooting to try to understand why the container behaves so differently in the two locations. My first instinct has been that there is something different about the codespace environment, but I just haven't found anything. Wondering if someone has figured this out previously.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has anyone been able to make msal persistence work in a container running in Codespaces?
Asking because I have a dev container that works perfectly when running in a local VS client, and the same container does not work when running in a codespace.
Specifics:
export $(dbus-launch)
to start the dbus session daemon and set the related environment variables.PersistenceCreator.createPersistence
Uncaught PersistenceError PersistenceError: CachePersistenceError: Verifing persistence failed with the error: Error: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/collection/login
I've been troubleshooting to try to understand why the container behaves so differently in the two locations. My first instinct has been that there is something different about the codespace environment, but I just haven't found anything. Wondering if someone has figured this out previously.
Beta Was this translation helpful? Give feedback.
All reactions