Skip to content

Commit

Permalink
Hook up GetSubjectDescriptor in GroupSession (project-chip#15091)
Browse files Browse the repository at this point in the history
Progress toward project-chip#14541
  • Loading branch information
mlepage-google authored and fuxingguo16 committed Apr 26, 2022
1 parent b372d31 commit 9f0ad01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/transport/GroupSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ class GroupSession : public Session

Access::SubjectDescriptor GetSubjectDescriptor() const override
{
Access::SubjectDescriptor isd;
isd.authMode = Access::AuthMode::kGroup;
// TODO: fill other group subjects fields
return isd; // return an empty ISD for unauthenticated session.
Access::SubjectDescriptor subjectDescriptor;
subjectDescriptor.authMode = Access::AuthMode::kGroup;
subjectDescriptor.subject = NodeIdFromGroupId(mGroupId);
subjectDescriptor.fabricIndex = GetFabricIndex();
return subjectDescriptor;
}

bool RequireMRP() const override { return false; }
Expand Down

0 comments on commit 9f0ad01

Please sign in to comment.