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
md365 ships with a built-in app registration — no Azure setup needed. If your tenant requires a custom app, you can set `client_id` per account in the config.
147
+
148
+
### 2. Login and Sync
149
+
150
+
```bash
151
+
md365 auth login --account work
152
+
md365 sync
153
+
```
154
+
155
+
### Auth Flows
156
+
157
+
Most tenants work with the default **Device Code Flow**. If your tenant blocks it (Conditional Access), use **Authorization Code Flow with PKCE**:
158
+
159
+
```yaml
160
+
accounts:
161
+
work:
162
+
auth_flow: authcode # opens browser instead of device code
You can use the same or different `client_id` per account.
185
+
## Token Storage
160
186
161
-
### 3. Login and sync
187
+
Tokens are stored exclusively in the system keyring (gnome-keyring, macOS Keychain, Windows Credential Manager). A running keyring daemon is required — no file fallback.
188
+
189
+
The `offline_access` scope enables refresh tokens, so you only need to log in once per account. Tokens refresh automatically on use and remain valid for up to 90 days of inactivity.
190
+
191
+
## Installation
192
+
193
+
### Homebrew (macOS & Linux)
162
194
163
195
```bash
164
-
md365 auth login --account work
165
-
md365 sync
196
+
brew install lcorneliussen/md365/md365
166
197
```
167
198
168
-
## Token Storage
199
+
### AUR (Arch Linux)
169
200
170
-
Tokens are stored exclusively in the system keyring (gnome-keyring, macOS Keychain, Windows Credential Manager). A running keyring daemon is required — no file fallback.
201
+
```bash
202
+
yay -S md365-bin
203
+
```
171
204
172
-
The `offline_access` scope enables refresh tokens, so you only need to log in once per account. Tokens refresh automatically on use and remain valid for up to 90 days of inactivity.
205
+
### Go Install
173
206
174
-
## Installation
207
+
```bash
208
+
go install github.com/lcorneliussen/md365@latest
209
+
```
210
+
211
+
### GitHub Releases
212
+
213
+
Download pre-built binaries for Linux, macOS, and Windows from [Releases](https://github.com/lcorneliussen/md365/releases).
0 commit comments