Ori
September 11, 2020, 7:13am
1
A tutorial has been added exploring the new identity features in the dfx command line tool, you can now switch between and manage multiple identities, which is useful for testing user access and roles:
https://sdk.dfinity.org/docs/developers-guide/tutorials/access-control.html
8 Likes
Ori
September 11, 2020, 7:32pm
2
You could couple this with Firefox’s Containers add-on for browser based testing:
You can use Firefox’s Containers https://addons.mozilla.org/en-GB/firefox/addon/multi-account-containers/ to test your apps with multiple users in a single browser window.
The sdk currently maintains a single user id in the browser’s local storage, and you would normally need to use private browsing mode or switch to a different browser to test more than one user, so you may find this useful.
2 Likes