feat(server): add OIDC for AFFiNE (#6991)

Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
Tao Chen
2024-05-23 18:35:30 +02:00
committed by GitHub
parent 0c42849bc3
commit 22a8a2663e
11 changed files with 281 additions and 5 deletions
+13 -1
View File
@@ -131,7 +131,7 @@ AFFiNE.port = 3010;
// AFFiNE.storage.storages.blob.provider = 'r2';
// AFFiNE.storage.storages.avatar.provider = 'r2';
//
// /* OAuth Plugin */
/* OAuth Plugin */
// AFFiNE.plugins.use('oauth', {
// providers: {
// github: {
@@ -152,5 +152,17 @@ AFFiNE.port = 3010;
// access_type: 'offline',
// },
// },
// oidc: {
// // OpenID Connect
// issuer: '',
// clientId: '',
// clientSecret: '',
// args: {
// scope: 'openid email profile',
// claim_id: 'preferred_username',
// claim_email: 'email',
// claim_name: 'name',
// },
// },
// },
// });