Return only session id in CreateSession in UserInternalAPI

This commit is contained in:
Piotr Kozimor 2021-08-10 10:42:48 +02:00
parent 4d1f248a9b
commit 1f537ba1b9

View file

@ -50,7 +50,7 @@ type UserInternalAPI interface {
QueryDeviceInfos(ctx context.Context, req *QueryDeviceInfosRequest, res *QueryDeviceInfosResponse) error QueryDeviceInfos(ctx context.Context, req *QueryDeviceInfosRequest, res *QueryDeviceInfosResponse) error
QuerySearchProfiles(ctx context.Context, req *QuerySearchProfilesRequest, res *QuerySearchProfilesResponse) error QuerySearchProfiles(ctx context.Context, req *QuerySearchProfilesRequest, res *QuerySearchProfilesResponse) error
QueryOpenIDToken(ctx context.Context, req *QueryOpenIDTokenRequest, res *QueryOpenIDTokenResponse) error QueryOpenIDToken(ctx context.Context, req *QueryOpenIDTokenRequest, res *QueryOpenIDTokenResponse) error
CreateSession(context.Context, *CreateSessionRequest, *Session) error CreateSession(context.Context, *CreateSessionRequest, *CreateSessionResponse) error
ValidateSession(context.Context, *ValidateSessionRequest, struct{}) error ValidateSession(context.Context, *ValidateSessionRequest, struct{}) error
GetThreePidForSession(context.Context, *SessionOwnership, *GetThreePidForSessionResponse) error GetThreePidForSession(context.Context, *SessionOwnership, *GetThreePidForSessionResponse) error
DeleteSession(context.Context, *SessionOwnership, struct{}) error DeleteSession(context.Context, *SessionOwnership, struct{}) error
@ -350,6 +350,13 @@ const (
type CreateSessionRequest struct { type CreateSessionRequest struct {
ClientSecret, NextLink, ThreePid string ClientSecret, NextLink, ThreePid string
Extra []string
SendAttempt int
SessionType ThreepidSessionType
}
type CreateSessionResponse struct {
Sid string
} }
type ValidateSessionRequest struct { type ValidateSessionRequest struct {