mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-26 14:58:55 +08:00
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:
@@ -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',
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user