0

I'm trying to create meeting using Chime SDK and I'm passing accessKey and accessKeyId to authenticate. However, the request fails with error, 'Invalid session token'. When I pass session token generated using AWS CLI it works fine. I want to generate the session token programmatically from within .net. How to achieve this.

AWSCredentials credentials = new Chime.Credentials(awsAccessKeyId, awsSecretAccessKey, token);
RegionEndpoint region = RegionEndpoint.USEast1;
        client = new AmazonChimeClient(credentials, RegionEndpoint.USEast1);
CreateMeetingRequest request = new CreateMeetingRequest();
        request.MeetingHostId = meetingHostId;
        request.ExternalMeetingId = externalMeetingId;

        return await client.CreateMeetingAsync(request);
Chandra Eskay
  • 2,163
  • 9
  • 38
  • 58

1 Answers1

0

You are not setting the ClientRequestToken

CreateMeetingRequest request = new CreateMeetingRequest();
request.MeetingHostId = meetingHostId;
request.ExternalMeetingId = externalMeetingId;
//needs request.ClientRequestToken = ????

Tim

timanderson
  • 843
  • 1
  • 10
  • 20