<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Latest Sinch iOS SDK + a legacy VOIP account in Discussion Forum</title>
    <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9521#M15</link>
    <description>&lt;P&gt;Can I use the latest iOS SDK (SinchRTC 5.11.6) with the "Legacy Voice, Video, and Verification" service?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in a process of updating our iOS app from SinchRTC 4.2.11 SDK and while implementing the new JSON Web Token authentication process I hit a wall. I think I'm creating the JWTs correctly, but I'm always getting 401 errors from `clientDidFail(_: SINClient!, error: Error!)` delegate method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;Error Domain=SINErrorDomainApi Code=401 "401 (401)" UserInfo={NSLocalizedDescription=401 (401), serverReference=f32fc19e-2801-406f-8116-671cc1262720, serverMessage=401, httpStatusCode=401, ocraErrorCode=401}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid this might be caused by our account being still a legacy one, it's registered at pawel.dudek@toptal.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 12:13:24 GMT</pubDate>
    <dc:creator>Blazej</dc:creator>
    <dc:date>2023-03-16T12:13:24Z</dc:date>
    <item>
      <title>Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9521#M15</link>
      <description>&lt;P&gt;Can I use the latest iOS SDK (SinchRTC 5.11.6) with the "Legacy Voice, Video, and Verification" service?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm in a process of updating our iOS app from SinchRTC 4.2.11 SDK and while implementing the new JSON Web Token authentication process I hit a wall. I think I'm creating the JWTs correctly, but I'm always getting 401 errors from `clientDidFail(_: SINClient!, error: Error!)` delegate method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;Error Domain=SINErrorDomainApi Code=401 "401 (401)" UserInfo={NSLocalizedDescription=401 (401), serverReference=f32fc19e-2801-406f-8116-671cc1262720, serverMessage=401, httpStatusCode=401, ocraErrorCode=401}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid this might be caused by our account being still a legacy one, it's registered at pawel.dudek@toptal.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:13:24 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9521#M15</guid>
      <dc:creator>Blazej</dc:creator>
      <dc:date>2023-03-16T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9522#M16</link>
      <description>&lt;P&gt;Hi Blazej,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to use the same credentials you used with the legacy SDK.&lt;BR /&gt;&lt;BR /&gt;Here are some additional documentation for creating and signing your JWT:&lt;BR /&gt;&lt;A href="https://github.com/sinch/sinch-rtc-api-auth-examples" target="_blank" rel="noopener"&gt;https://github.com/sinch/sinch-rtc-api-auth-examples&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.sinch.com/docs/in-app-calling/ios/auth/" target="_blank" rel="noopener"&gt;https://developers.sinch.com/docs/in-app-calling/ios/auth/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.sinch.com/docs/in-app-calling/ios-android-cloud-migration/" target="_blank" rel="noopener"&gt;https://developers.sinch.com/docs/in-app-calling/ios-android-cloud-migration/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you still have issues after looking through the docs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 13:31:31 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9522#M16</guid>
      <dc:creator>Andreas_Svitzer</dc:creator>
      <dc:date>2022-08-10T13:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9523#M17</link>
      <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;I've looked into your Python example and I think I'm doing exactly the same, just in Swift. Perhaps I'm using wrong backend address. It used to be `sandbox.sinch.com` for debugging and `clientapi.sinch.com` for production. At the moment I'm only testing a debugging build against `ocra.api.sinch.com`, is this fine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the error I get is not very descriptive but maybe you could check your server logs and tell me what's wrong with my JWT? My app ID is `f4016904-df1d-4ffb-ad3a-95e525e9e13a` and here is exactly the error code I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"error": {
		"code": 401,
		"message": "401",
		"reference": "127e6693-b7f4-457d-99dc-f81c43f93c9a"
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:09:22 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9523#M17</guid>
      <dc:creator>Blazej</dc:creator>
      <dc:date>2022-08-10T14:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9524#M18</link>
      <description>&lt;P&gt;I just used a sniffer to intercept the JWT that goes to your servers and verified with jwt.io that it looks as expected (at least AFAIU) and is correctly signed. Here it is:&amp;nbsp;&lt;A href="https://jwt.io/#debugger-io?token=eyJraWQiOiJoa2RmdjEtMjAyMjA4MTAiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIvL3J0Yy5zaW5jaC5jb20vYXBwbGljYXRpb25zL2Y0MDE2OTA0LWRmMWQtNGZmYi1hZDNhLTk1ZTUyNWU5ZTEzYSIsImlhdCI6MTY2MDE0MDc3Niwibm9uY2UiOiIxNjYwMTQwNzc2LURBOUVEQzNBLTRFRjctNDFFQi04NUFDLTkzOTlGNzgxMTJGQyIsImV4cCI6MTY5MTY3Njc3Niwic3ViIjoiLy9ydGMuc2luY2guY29tL2FwcGxpY2F0aW9ucy9mNDAxNjkwNC1kZjFkLTRmZmItYWQzYS05NWU1MjVlOWUxM2EvdXNlcnMvVG9wdGFsIn0.g9_0f0rqB7Hm9Y2kqo5QI39j5pB2sQIp4d1YvHkxeno" target="_blank"&gt;https://jwt.io/#debugger-io?token=eyJraWQiOiJoa2RmdjEtMjAyMjA4MTAiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIvL3J0Yy5zaW5jaC5jb20vYXBwbGljYXRpb25zL2Y0MDE2OTA0LWRmMWQtNGZmYi1hZDNhLTk1ZTUyNWU5ZTEzYSIsImlhdCI6MTY2MDE0MDc3Niwibm9uY2UiOiIxNjYwMTQwNzc2LURBOUVEQzNBLTRFRjctNDFFQi04NUFDLTkzOTlGNzgxMTJGQyIsImV4cCI6MTY5MTY3Njc3Niwic3ViIjoiLy9ydGMuc2luY2guY29tL2FwcGxpY2F0aW9ucy9mNDAxNjkwNC1kZjFkLTRmZmItYWQzYS05NWU1MjVlOWUxM2EvdXNlcnMvVG9wdGFsIn0.g9_0f0rqB7Hm9Y2kqo5QI39j5pB2sQIp4d1YvHkxeno&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:22:52 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9524#M18</guid>
      <dc:creator>Blazej</dc:creator>
      <dc:date>2022-08-10T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9527#M20</link>
      <description>&lt;P&gt;The information you provide above shows the following error in our logs:&lt;BR /&gt;&lt;EM&gt;Authentication failure: IDX10501: Signature validation failed. Unable to match key: kid: 'System.String'.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Within our iOS distribution you will find our Swift sample app,&amp;nbsp;&lt;SPAN&gt;dynamic/SinchRTC/samples/VideoCallKitSwift:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="c-link" tabindex="-1" href="https://download.sinch.com/ios/5.12.5/SinchRTC-iOS-5.12.5%2b6f51d567.tar.bz2" target="_blank" rel="noopener noreferrer" data-stringify-link="https://download.sinch.com/ios/5.12.5/SinchRTC-iOS-5.12.5%2b6f51d567.tar.bz2" data-sk="tooltip_parent" data-remove-tab-index="true"&gt;https://download.sinch.com/ios/5.12.5/SinchRTC-iOS-5.12.5%2b6f51d567.tar.bz2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There you will find an example for how to create the JWT with Swift and you can also run the sample to verify you credentials.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 09:00:25 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9527#M20</guid>
      <dc:creator>Andreas_Svitzer</dc:creator>
      <dc:date>2022-08-11T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9528#M21</link>
      <description>&lt;P&gt;Hi Andreas, thank you! Your sample Swift code indeed is able to authenticate against `&lt;SPAN&gt;ocra.api.sinch.com`. I tested both tokens with jwt.io and they have the same content, so I don't really get where's the difference. Anyway, I'll just continue using your sample. Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:15:53 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9528#M21</guid>
      <dc:creator>Blazej</dc:creator>
      <dc:date>2022-08-11T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Latest Sinch iOS SDK + a legacy VOIP account</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9529#M22</link>
      <description>&lt;P&gt;Great stuff, let me know if you need something else&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:34:17 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Latest-Sinch-iOS-SDK-a-legacy-VOIP-account/m-p/9529#M22</guid>
      <dc:creator>Andreas_Svitzer</dc:creator>
      <dc:date>2022-08-11T13:34:17Z</dc:date>
    </item>
  </channel>
</rss>

