https://github.com/ugreg/mixed-reality-guides
Prototype of Field Service AR Guides
https://github.com/ugreg/mixed-reality-guides
Last synced: about 1 year ago
JSON representation
Prototype of Field Service AR Guides
- Host: GitHub
- URL: https://github.com/ugreg/mixed-reality-guides
- Owner: ugreg
- Created: 2020-01-21T16:48:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T01:22:45.000Z (over 6 years ago)
- Last Synced: 2025-03-19T23:46:21.787Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 590 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guides Generator
An API to create Dynamics 365 Guides using Python.
## Setup
Open a terminal as an admin.
Setup python3 virtual env or source an existing on your os.
Linux
```python
sudo apt-get update
pip install virtualenv
python3 -m venv linux
source env/linux/bin/activate
```
Windows
```python
pip install virtualenv
python -m venv .win
env\.win\Scripts\activate.bat
```
Pull dependencies.
```bash
pip install -r requirements.txt
python __main__.py
```
Security and Complianec. Authentication (get token) and authorization (what's your permissions).
adal # works for api with application and delegated permissions
https://github.com/Azure-Samples/ms-identity-python-daemon
MSAL one will be updated going forward
import msal # works for api with application permissions
https://github.com/Azure-Samples/ms-identity-python-webapp
the BIG endpoint
https://login.microsoftonline.com/grdegr.onmicrosoft.com/oauth2/authorize?client_id=0960be47-c441-4a8b-96e1-16f97487ff35&response_type=code&redirect_uri=https%3A%2F%2Fcallbackurl&response_mode=query&resource=https%3A%2F%2Fmsott.api.crm.dynamics.com%2F&state=12345
From [Request an authorization code](Request an authorization code)
```sh
https://login.microsoftonline.com/{tenant}/oauth2/authorize?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=code
&redirect_uri=http%3A%2F%2Flocalhost%3A12345
&response_mode=query
&resource=https%3A%2F%2Fservice.contoso.com%2F
&state=12345
```
Verify scope and authority using https://jwt.ms/.