Skip to content

Commit 4afbd8d

Browse files
authored
Add an unofficial doc for mac broker integration (#732)
* Add/update broker integration doc * Move the doc components from .md file to broker-test.py
1 parent b9d9b05 commit 4afbd8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/broker-test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
55
Each time a new PyMsalRuntime is going to be released,
66
we can use this script to test it with a given version of MSAL Python.
7+
8+
1. If you are on a modern Windows device, broker WAM is already built-in;
9+
If you are on a mac device, install CP (Company Portal), login an account in CP and finish the MDM process.
10+
2. For installing MSAL Python from its latest `dev` branch:
11+
`pip install --force-reinstall "git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git[broker]"`
12+
3. (Optional) A proper version of `PyMsalRuntime` has already been installed by the previous command.
13+
But if you want to test a specific version of `PyMsalRuntime`,
14+
you shall manually install that version now.
15+
4. Run this test by `python broker-test.py` and make sure all the tests passed.
16+
717
"""
818
import msal
919
import getpass

0 commit comments

Comments
 (0)