a6bf3160f3
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 5eecba3ab1ce97c57585e4ed0561d38c614d51a7)
45 lines
967 B
Markdown
45 lines
967 B
Markdown
## Configuration for OIDC
|
|
|
|
### Context
|
|
- Team Mail ready to work with OIDC both for Mobile and Web version
|
|
|
|
### How to config
|
|
|
|
- OIDC_SCOPES: Scopes of OIDC application, each scope is separated by a comma `,`
|
|
- Other configurations depend on the platform:
|
|
|
|
#### Web:
|
|
- `DOMAIN_REDIRECT_URL`: URL of your TwakeMail web application
|
|
- `WEB_OIDC_CLIENT_ID`: Client ID of your OIDC application
|
|
|
|
#### Mobile:
|
|
- if you want to change client Id for mobile
|
|
|
|
For Android:
|
|
- `/android/app/build.gradle`
|
|
|
|
```gradle
|
|
manifestPlaceholders = [
|
|
'appAuthRedirectScheme': 'teammail.mobile'
|
|
]
|
|
```
|
|
|
|
- `model/lib/oidc/oidc_configuration.dart`
|
|
|
|
```dart
|
|
static const String redirectUrlScheme = 'teammail.mobile';
|
|
```
|
|
|
|
For iOS:
|
|
- `/ios/Runner/Info.plist`
|
|
|
|
```plist
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleURLSchemes</key>
|
|
<array>
|
|
<string>teammail.mobile</string>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
``` |