From d2b89e629ab0ba8e56f7a3ec370dc67625df853b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 22 Oct 2025 21:53:57 +0800 Subject: [PATCH] add comment --- pkg/auth/oauth2/nextcloud_oauth2_datasource.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/auth/oauth2/nextcloud_oauth2_datasource.go b/pkg/auth/oauth2/nextcloud_oauth2_datasource.go index 3a612316..73110129 100644 --- a/pkg/auth/oauth2/nextcloud_oauth2_datasource.go +++ b/pkg/auth/oauth2/nextcloud_oauth2_datasource.go @@ -56,11 +56,12 @@ func (s *NextcloudOAuth2DataSource) GetUserInfoRequest() (*http.Request, error) } // GetScopes returns the scopes required by the Nextcloud provider -func (p *NextcloudOAuth2DataSource) GetScopes() []string { +func (s *NextcloudOAuth2DataSource) GetScopes() []string { return []string{} } -func (p *NextcloudOAuth2DataSource) ParseUserInfo(c core.Context, body []byte) (*OAuth2UserInfo, error) { +// ParseUserInfo returns the user info by parsing the response body +func (s *NextcloudOAuth2DataSource) ParseUserInfo(c core.Context, body []byte) (*OAuth2UserInfo, error) { userInfoResp := &nextcloudUserInfoResponse{} err := json.Unmarshal(body, &userInfoResp)