From 937b8e4d7dfd5b9c4742418babd6ee1c03b61106 Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Thu, 15 Jun 2023 15:23:17 +0700 Subject: [PATCH] [Docs] Configure OIDC (cherry picked from commit 234764abb4056b683b5726f72d9f04bdd273b95a) --- docs/configuration/oidc_configuration.md | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/configuration/oidc_configuration.md diff --git a/docs/configuration/oidc_configuration.md b/docs/configuration/oidc_configuration.md new file mode 100644 index 000000000..1dcfc8063 --- /dev/null +++ b/docs/configuration/oidc_configuration.md @@ -0,0 +1,45 @@ +## 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 TeamMail 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 + + + CFBundleURLSchemes + + teammail.mobile + + + +``` \ No newline at end of file