Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: idp config convert

johnnyjoy43d176f27279
diff --git a/server/router/api/v1/idp_service.go b/server/router/api/v1/idp_service.go
index 11f69b73e..fb52513e2 100644
--- a/server/router/api/v1/idp_service.go
+++ b/server/router/api/v1/idp_service.go
@@ -125,6 +125,7 @@ func convertIdentityProviderFromStore(identityProvider *storepb.IdentityProvider
Identifier: oauth2Config.FieldMapping.Identifier,
DisplayName: oauth2Config.FieldMapping.DisplayName,
Email: oauth2Config.FieldMapping.Email,
+ AvatarUrl: oauth2Config.FieldMapping.AvatarUrl,
},
},
},
@@ -162,6 +163,7 @@ func convertIdentityProviderConfigToStore(identityProviderType v1pb.IdentityProv
Identifier: oauth2Config.FieldMapping.Identifier,
DisplayName: oauth2Config.FieldMapping.DisplayName,
Email: oauth2Config.FieldMapping.Email,
+ AvatarUrl: oauth2Config.FieldMapping.AvatarUrl,
},
},
},