<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ryuta Kibe on Medium]]></title>
        <description><![CDATA[Stories by Ryuta Kibe on Medium]]></description>
        <link>https://medium.com/@beryu?source=rss-980c91a6eb8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*epjAgjgsU6s6A05y.png</url>
            <title>Stories by Ryuta Kibe on Medium</title>
            <link>https://medium.com/@beryu?source=rss-980c91a6eb8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:27:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@beryu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Which client id should I use when implementing Sign in with Apple?]]></title>
            <link>https://medium.com/@beryu/which-client-id-should-i-use-when-implementing-sign-in-with-apple-5efa85673718?source=rss-980c91a6eb8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5efa85673718</guid>
            <category><![CDATA[sign-in-with-apple]]></category>
            <dc:creator><![CDATA[Ryuta Kibe]]></dc:creator>
            <pubDate>Tue, 24 Mar 2020 15:36:05 GMT</pubDate>
            <atom:updated>2020-03-29T00:40:46.970Z</atom:updated>
            <content:encoded><![CDATA[<h3>Which parameters should I use when implementing Sign in with Apple?</h3><p>If you want to implement “Sign in with Apple” on the server-side, you should know where each parameter you get.</p><h3>Basic architecture</h3><p>The flow is not too complexed. But I struggled to implement this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rS_96MT3hZJx2-r2_00EQ.png" /><figcaption>The flow to register Apple ID to your server</figcaption></figure><p>The complex points are steps 2–3 above. The API generates <strong>client_secret</strong> and send it with <strong>client_id, code, grant_type </strong>to <a href="https://developer.apple.com/documentation/signinwithapplerestapi/generate_and_validate_tokens">Apple’s REST API</a>.<br>code is sent by client apps. And grant_type is authorization_code if your purpose is authentication.</p><p><strong>client_secret</strong> is JWT Token. Header and payload are written in <a href="https://developer.apple.com/documentation/signinwithapplerestapi/generate_and_validate_tokens#3262048">the document</a>.<br>I wrote where each parameter you get in below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18f32aee229272e2f682c03a69ea19bf/href">https://medium.com/media/18f32aee229272e2f682c03a69ea19bf/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f55d0f6f4a28f0d2073cdd880d7a6d26/href">https://medium.com/media/f55d0f6f4a28f0d2073cdd880d7a6d26/href</a></iframe><h3>You should switch client_id by the sent code is fetched with iOS native SDK or not.</h3><h4>In the case of iOS native SDK</h4><p>client_id is equal with the <strong>Bundle ID</strong> of your app.<br>This ID is shown in <a href="https://developer.apple.com/account/resources/identifiers/list/bundleId">https://developer.apple.com/account/resources/identifiers/list/bundleId</a>.<br>(ex) com.example.app</p><h4>In the case of the other platforms.</h4><p>client_id is equal with the <strong>Service ID</strong> of your “Sign in with Apple”.<br>The ID is shown in <a href="https://developer.apple.com/account/resources/identifiers/list/serviceId">https://developer.apple.com/account/resources/identifiers/list/serviceId</a>.<br>(ex) com.example.app.signin</p><h3>Can users sign-in across platforms between iOS native and the other platforms?</h3><p>Yes.<br>Users can sign-in to the same account when using client_id above.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5efa85673718" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>