<?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 Barıs Can Kurtulmus on Medium]]></title>
        <description><![CDATA[Stories by Barıs Can Kurtulmus on Medium]]></description>
        <link>https://medium.com/@baris.can.kurtulmus1?source=rss-7774ed1311c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wj_Aa2FILbP3hu641hSgSw.jpeg</url>
            <title>Stories by Barıs Can Kurtulmus on Medium</title>
            <link>https://medium.com/@baris.can.kurtulmus1?source=rss-7774ed1311c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:05:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@baris.can.kurtulmus1/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[DevEco Studio IDE’sindeki Harmony OS Uygulamaları için Log Rehberi -Bölüm 1]]></title>
            <link>https://medium.com/huawei-developers-tr/deveco-studio-idesindeki-harmony-os-uygulamalar%C4%B1-i%C3%A7in-log-rehberi-b%C3%B6l%C3%BCm-1-c904425c19da?source=rss-7774ed1311c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c904425c19da</guid>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[harmony-os]]></category>
            <dc:creator><![CDATA[Barıs Can Kurtulmus]]></dc:creator>
            <pubDate>Fri, 26 Nov 2021 11:32:14 GMT</pubDate>
            <atom:updated>2021-11-26T12:33:50.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*uCHJsowL34kYLH6d.jpeg" /></figure><p><strong>DevEco Studio nedir ?</strong></p><p>DevEco Studio HUAWEI 1–8+N cihaz ekosistemine ve Dağıtık İşletim Sistemine masaüstü IDEler ve çeşitli bulut servisleri yardımıyla uygulama,quick uygulama geliştirilmesi için uygun bir ortam sağlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cfF5ss-3D1u5Ns_Z.png" /><figcaption>DevEco Studio Masaüstü IDEsi</figcaption></figure><h3>Giriş</h3><p>Bu makalede aşağıda belirtilen DevEco Studio IDE araçlarıyla nasıl farklı tipteki loglar yaratıp görüntüleyebileceğimizi açıklayacağım:</p><ul><li>Simülatörler(lite wearable&amp; akıllı TV)</li><li>Gerçek Harmony OS Cihaz ile bağlantı (wearable &amp; akıllı telefonlar)</li></ul><h3>Simülatörler</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*b9G8jpXKEzW9Da-f.png" /></figure><h4>Konsol logları oluşturma</h4><p>Eğer lite wearable veya akıllı TV uygulamanızı kendi DevECO Studio simülatörleri üzerinde çalıştırırken veya hata ayıklama sürecinde iken ilgili değişimleri gözlemlemek istiyorsanız ilgili <strong>konsol logları(1)</strong>nın kullanımı<strong> </strong>aşağıdaki gibi kullanılabilir:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daff2a41de83c68a8c669e19bf20e933/href">https://medium.com/media/daff2a41de83c68a8c669e19bf20e933/href</a></iframe><p>Daha fazla bilgi için lütfen bu <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-basic-features-logs-0000000000611813">linki </a>kontrol edin.</p><h4>Konsol logları görüntüleme</h4><p>HarmonyOS uygulamalarının simülatör konsol loglarını görüntülemek /kontrol etmek için iki farklı yol:</p><p>1.Sisteminizdeki <strong><em>C:\Users\&lt;Username&gt;\ AppData\ Local\ Huawei\ DevEcoStudio2.1\log</em></strong> dosya dizininde bulunan <em>previewer.log</em> dosya içeriğini kontrol etmek</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pIDd7i6yDIV7pCmt.png" /></figure><p><strong>Not:</strong> <em>simulator.log </em>dosyası(üstte belirtilen dizin ile aynı dosya dizinindeki) IDE’nin kendi hata ayıklama ve protocol logları için kullanılır . Bu dosya çalışan simülatör loglarını kaydetmez.</p><p>2. Konsol loglarını <em>DEV Eco Studio IDE arayüzü’nde </em>kontrol etme</p><p>Eğer uygulama projenizi lite wearable simülatör’ünde (<strong>Run)</strong>çalıştırırsanız ,çalışma konsol logları şu şekilde görüntülenir:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bem_Lle4_itUEBr-.png" /></figure><p>Eğer uygulama projenizi lite wearable simülatör’ünde (<strong>Debug)</strong>hata ayıklamak için çalıştırırsanız, hata ayıklama konsol logları şu şekilde görüntülenir:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*U1CBIyQGUi_S6XH2.png" /></figure><p>Eğer uygulama projenizi lite wearable simülatör’ünde (<strong>Preview)</strong>ön görüntüleme için çalıştırırsanız, ön görüntüleme konsol logları şu şekilde görüntülenir:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*v0nVGUr_KKINndx9SI6cZA.png" /></figure><p>Daha fazla bilgi için lütfen bu <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-basic-features-logs-0000000000611813">linki </a>kontrol edin.</p><h3>Gerçek Harmony OS Cihaz ile bağlantı</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Owu1nuNc48XHzdSEPP6tYw.jpeg" /></figure><p>Simülatörler için olan daha önceki bölüme benzer şekilde gerçek harmony OS Cihazlarları için de <em>Konsol logları oluşturma</em> ve <em>Konsol logları görüntüleme</em> işlemlerini gerçekleştirebilirsiniz.</p><p><strong>Adım 1:</strong> Cihazın desteklediği özelliklerine bağlı olarak Harmony OS cihazı PC’nize USB-debugging veya WI-FI debugging kullanarak bağlayın ve cihazın Dev ECO Studio IDE tarafından algılandığına emin olun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*oghq9PeqpLjKijFG2bDkPw.png" /><figcaption>Dev Eco Studio IDE’sinde bağlantısı kurulmuş Huawei Cihaz</figcaption></figure><p>Lütfen bu <a href="https://developer.harmonyos.com/en/docs/documentation/doc-guides/run_smartwatch-0000001052902433">linki </a>giyilebilir cihaz bağlantı adımları hakkında daha fazla bilgi alabilmek için kontrol edin.</p><h4>Konsol logları oluşturma</h4><p>Simülatörler için yapıldığı gibi konsol info-spesifik loglarını aşağıdaki gibi oluşturun</p><pre>var versionCode = 1;<br>console.info(&#39;Hello World. The current version code is &#39; + versionCode);</pre><h4>Konsol logları görüntüleme</h4><p>Konsol info-spesifik logları HiLog alt-menüsünde halihazırdaki cihazı, işlemi ve log seviyesini seçerek görüntüleyin. Daha sonra Hello World ifadesini arama alanına girin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*4ZR-gDnRzTsQE4Cz.png" /><figcaption>Huawei Vision X65 smart TV cihazda log örneği</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/0*CpgzRSxlSid10Gxb.png" /><figcaption>Huawei Watch 3 saatte log örneği</figcaption></figure><h4>HiLog oluşturma</h4><p>HarmonyOS’in Hilog kabiliyeti uygulamalarınız için belirli tip, seviye ve formata göre log çıktısı verilmesine yardımcı olur. Bu loglar size çalışan uygulamanızın durumu ve daha iyi hata ayıklama odağında yardım eder.</p><p><strong>Not: </strong>Bu modül API’ ları Javascript için Harmony OS JS API versiyon 7 &#39;den itibaren destekleniyor.</p><p><strong>JS API versiyon 7 kodu:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82bcd1a74bcc9e619ef3a555b7798f82/href">https://medium.com/media/82bcd1a74bcc9e619ef3a555b7798f82/href</a></iframe><p><strong>Java API önceki versiyon kodu:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6491b369d03485ccdf459888789a7d2/href">https://medium.com/media/f6491b369d03485ccdf459888789a7d2/href</a></iframe><h4>HiLog görüntüleme</h4><p>JS API versiyon 7 HiLog Logu cihazda görüntüleme durumu: <strong>ŞU AN MEVCUT DEGİL</strong></p><p><strong>Not</strong>: JS API versiyon 7&#39;de var olan HiLog loglarınızın DEV Eco Studio projenizde görüntülenmesi için API versiyon 7 desteleyen bir harmony OS cihaza ihtiyacınız var. Şu an piyasadaki hiç bir cihazın API versiyon 7 desteği bulunmamaktadır(Kasım 2021).Bu desteğin sağlanacağına dair bir gelecek planı mevcut. JAVA API önceki versiyonlarında ve güncel versiyonlarında ise HiLog halihazırda yayınlanmış durumda ve belirli cihazlar tarafından kullanılabiliyor .</p><p>JAVA API versiyon 7 HiLog Logu cihazda görüntüleme<strong>(2)(3)</strong> durumu: Ş<strong>U AN MEVCUT</strong></p><p>JAVA API HiLog uyarı-spesifik logu mevcut cihazı,işlemi ve log seviyesini Warning seçerek HiLog alt-menüsünde görüntüle.Daha sonra servis domain numarasını “00201” olacak şekilde arama kutusuna gir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HbsUd0qvkfcQ-9Ls.png" /></figure><h3>Sonuç</h3><p>Bu makale HiLog ve konsol loglarını oluşturma ve görüntüleme konusundaki makale serisinin ilkidir.Sıradaki makalelerde HiTrace Log Takibi,Cihazlar arası hata ayıklama(dağıtık uygulama logu) vb. konseptlere yer verilecektir.</p><h3>Kaynakça</h3><p><strong>1-)</strong><a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/lite-wearable-basic-features-logs-0000001169105055"> Resmi Harmony OS websitesindeki Konsol Log Dökümantasyonu</a></p><p><strong>2-)</strong> <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-hilog-0000001150092213#section570630172512">HiLog hakkında daha fazla bilgi için</a></p><p><strong>3-) </strong><a href="https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide-debug-hilog-0000001172459337">HiLog hakkında daha fazla bilgi için</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c904425c19da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/deveco-studio-idesindeki-harmony-os-uygulamalar%C4%B1-i%C3%A7in-log-rehberi-b%C3%B6l%C3%BCm-1-c904425c19da">DevEco Studio IDE’sindeki Harmony OS Uygulamaları için Log Rehberi -Bölüm 1</a> was originally published in <a href="https://medium.com/huawei-developers-tr">Huawei Developers - Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Log guide for Harmony OS Apps on DevEco Studio IDE part 1]]></title>
            <link>https://medium.com/huawei-developers/log-guide-for-harmony-os-apps-on-deveco-studio-ide-part-1-fd5ac0f8174e?source=rss-7774ed1311c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd5ac0f8174e</guid>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[dev-eco-studio]]></category>
            <category><![CDATA[harmony-os]]></category>
            <dc:creator><![CDATA[Barıs Can Kurtulmus]]></dc:creator>
            <pubDate>Wed, 03 Nov 2021 10:13:23 GMT</pubDate>
            <atom:updated>2021-11-26T06:59:03.806Z</atom:updated>
            <content:encoded><![CDATA[<h3>Log Guide for Harmony OS Apps on DevEco Studio IDE-Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jjp8Lh1XhQpuGE6O4rW9g.jpeg" /></figure><p><strong>What is DevEco Studio?</strong></p><p>DevEco Studio provides a proper environment for the development of apps, quick apps, and smart devices for the HUAWEI 1+8+N ecosystem and distributed OS, with the help of desktop IDEs and various cloud services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgjESueAdxEfH4vsABEiTQ.png" /><figcaption>DevEco Studio Desktop IDE</figcaption></figure><h4>Introduction</h4><p>In this article, I will explain how to create and view different types of logs for the following gadgets on DevEco Studio IDE :</p><ul><li>Simulators (lite wearable &amp; smart TV)</li><li>real Harmony OS Device connection (wearable &amp; smartphone)</li></ul><h4><strong>Simulators</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drNqMw5Sq5wAlm4xzOVxbw.png" /></figure><h4>Create console logs</h4><p>If you want to observe changes through logs when you run &amp; debug(test) your lite wearable(ex: Huawei gt2 pro watch) or Smart TV application on their Dev ECO Studio simulators, <strong>console logs(1) </strong>can be used as below<strong><em> </em></strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daff2a41de83c68a8c669e19bf20e933/href">https://medium.com/media/daff2a41de83c68a8c669e19bf20e933/href</a></iframe><p>For further information please check this <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-basic-features-logs-0000000000611813">link</a>.</p><h4>View Console Logs</h4><p>Two different ways to check/view the harmony OS app console logs for simulators:</p><ol><li>Checking a <em>previewer.log</em> file content for logs at the following directory in your system : <strong><em>C:\Users\&lt;Username&gt;\ AppData\ Local\ Huawei\ DevEcoStudio2.1\log</em></strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*MgDrHbISMNCix2AdKWp7Ng.png" /></figure><p><strong>Note:</strong> <em>simulator.log</em> file (at the same directory path) used for IDE’s own debugging and protocol logs. It does not record the running simulator’s logs.</p><p>2. Checking console logs on <em>DEV Eco Studio IDE interface</em></p><p>If you<strong> Run </strong>the project on the lite wearable simulator, Run console logs viewed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zgn9GEkdAL2BmHMUeQ24aQ.png" /></figure><p>If you <strong>Debug </strong>the project on the lite wearable simulator, Debug console logs are viewed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SnVRZXI_8wQHTcGMU6XhbA.png" /></figure><p>If you <strong>Preview </strong>the project on Dev Eco Studio previewer, Preview logs are viewed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0nVGUr_KKINndx9SI6cZA.png" /></figure><p>For further details about the console logs check <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-basic-features-logs-0000000000611813">this</a> link.</p><h4>Real Harmony OS Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Owu1nuNc48XHzdSEPP6tYw.jpeg" /></figure><p>You can similarly <em>Create console logs</em> and <em>View Console Logs</em> for Real Harmony OS Devices as specified in the previous section for simulators.</p><p><strong>Step1:</strong> Connect your Harmony OS device to your PC using USB debugging or WI-FI debugging based on supported specs of the device and ensure that it is detected by Dev ECO Studio IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*oghq9PeqpLjKijFG2bDkPw.png" /><figcaption>Connected Huawei Watch Device on Dev ECO Studio IDE</figcaption></figure><p>Please check <a href="https://developer.harmonyos.com/en/docs/documentation/doc-guides/run_smartwatch-0000001052902433">this</a> link for detailed information on device connection steps.</p><h4>Create console logs</h4><p>Create <strong>console <em>info-specific</em></strong> log as done similarly for simulators</p><pre>var versionCode = 1;<br>console.info(&#39;Hello World. The current version code is &#39; + versionCode);</pre><h4>View Console Logs</h4><p>View <strong>console <em>info-specific</em></strong> log on <strong>HiLog </strong>submenu by choosing a current device, process, and set log level to Info. Then enter Hello World in the search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*z1WOLTmuxd71Wu2SYeQH2w.png" /><figcaption>Example 1 on Huawei Vision X65 smart TV</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*d5QZ8bJidEb1hVtemVtXOg.png" /><figcaption>Example 2 on Huawei Watch 3</figcaption></figure><h4>Create HiLogs</h4><p>HiLog capability of HarmonyOS helps your applications to output logs based on the specified type, level, and format string. Such logs help you learn the running status of applications and better debug programs.</p><p><strong>Note: </strong>The APIs of this module are supported since JS API version 7.</p><p><strong>Js API version 7 code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82bcd1a74bcc9e619ef3a555b7798f82/href">https://medium.com/media/82bcd1a74bcc9e619ef3a555b7798f82/href</a></iframe><p><strong>Java API older version code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6491b369d03485ccdf459888789a7d2/href">https://medium.com/media/f6491b369d03485ccdf459888789a7d2/href</a></iframe><h4>View HiLogs</h4><p>JS API version 7 Hilog Log Viewing on Device Status: <strong><em>Currently Not Available</em></strong></p><p><strong>Note</strong>: For the JS API version 7 project log to be viewed on DEV Eco Studio, you need a device that supports API version 7. It is currently(Nov 2021) not supported by any Harmony OS device in the market. But there is a future plan. For JAVA API&#39;s previous versions, it is already released and can be used by specific devices.</p><p>JAVA API previous version Hilog Log Viewing<strong>(2)(3) </strong>on Device Status: <strong><em>Available</em></strong></p><p>View JAVA API <strong>Hilog <em>warning-specific</em></strong> log on <strong>HiLog </strong>submenu by choosing a current device, process, and set the log level to Warning. Then enter service domain number “00201” in the search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*asqZTkLA3MuO-4_maZCpKA.png" /></figure><h4>Conclusion</h4><p>This is the first part of the article series that gives an introductory idea to Harmony OS developers about creating and viewing HiLogs &amp; console logs using Dev Eco Studio Desktop IDE. In the next parts, HiTrace Log Tracing, Cross-device debugging(distributed app log) concepts will be introduced.</p><h4>References</h4><p><strong>1-)</strong> <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/lite-wearable-basic-features-logs-0000001169105055">Console Log Documentation of official Harmony OS Website</a></p><p><strong>2-)</strong> <a href="https://developer.harmonyos.com/en/docs/documentation/doc-references/js-apis-hilog-0000001150092213#section570630172512">For further details about HiLog</a></p><p><strong>3-)</strong><a href="https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide-debug-hilog-0000001172459337"> For further details about HiLog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd5ac0f8174e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/log-guide-for-harmony-os-apps-on-deveco-studio-ide-part-1-fd5ac0f8174e">Log guide for Harmony OS Apps on DevEco Studio IDE part 1</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huawei Account Kit Explanation and Terminology]]></title>
            <link>https://medium.com/huawei-developers/huawei-account-kit-explanation-and-terminology-6c07aa152430?source=rss-7774ed1311c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c07aa152430</guid>
            <category><![CDATA[hms-account]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[huawei]]></category>
            <dc:creator><![CDATA[Barıs Can Kurtulmus]]></dc:creator>
            <pubDate>Fri, 03 Jul 2020 12:19:57 GMT</pubDate>
            <atom:updated>2020-07-06T07:32:15.222Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Salute to the reader who don’t have an objection to proceed with clarifying fundamental concepts while taking his/her first steps to Huawei Mobile Service development.</em></blockquote><p>This article can be seen as a preliminary preparation for my next guide that will only focus on technical details .It is about Huawei Account Kit’s features, conceptual mechanism,terms and explanations.</p><p><strong>Let’s start with definition</strong></p><p>Account Kit is mainly used for providing quick,simple and secure login functionalities to the 3rd party smart phone applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*u1fyvidsTTx9Uwih1ixt5w.png" /></figure><p>If you examine Account Kit’s Official Huawei resources on internet ,it also appears that they imply the simplicity,fastness and security. We can make use of following observation to understand where this fastness and simplicity is originated from:</p><p>You probably notice that Huawei App Gallery and Google App Store includes millions of mobile applications with different functions.You possibly know that you need to pass registration ,approval steps and you reluctantly hold separate email — password information for each application (if you are a little bit more cautious about security).This can gradually cause loss of valuable time on registration ,approval steps and proliferation of tons of email password combinations.To prevent such time and complexity issues,there is a Huawei Mobile Servis unit uses only one (unique) <strong>Huawei ID</strong> which created first time usage on mobile phone ,provides a quick experience by lowering the steps required for whole login process.In that manner,you can guarantee the simplicity and fastness if you integrate this unit known as Huawei Account Kit with your application.</p><ul><li>One-click login(HUAWEI ID owners sign into apps without manual login or verification)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/0*GqJ_RB2IRQkZ1iCf.png" /><figcaption><strong>One Kit to login all,one kit to find simplicity,one kit to bring them all and in Huawei App Gallery bind them</strong></figcaption></figure><blockquote><strong>Why developers should prefer Huawei Account Kit apart from above advantages?</strong></blockquote><ol><li><em>Support on many variety of device types</em>: Device support of this kit is not limited to smartphones .It is also compatible for applications of tablets,wearables like smart watches , smart screens and head units on cars that serve a great deal of user portfolio.You can easily access applications on those devices with HUAWEI ID.</li><li><em>International scope: It helps you to be the part of global mobile application network within its App Gallery Market available on 190+ countries/regions.</em></li></ol><p>3. <em>Security: </em>Account security support is provided in compliance with global and local security standards. Account authorization can be defined as password based or device based.</p><p><strong>Other Functionalities:</strong></p><ul><li>SMS verification: Enables your app to use verification codes on SMS messages automatically without applying for the SMS read permission.</li><li>QR Code login: Let users to login from their tablets,PCs,head units,phones and other devices using QR Code.</li></ul><p>Lets have a look at the difference between Authentication and Authorization before details on security standards:</p><p><strong><em>Authentication:</em></strong> Confirming to application that you are who you identify yourself as</p><p><strong><em>Authorization:</em></strong> Making a decision about whether you have rights to access to a resource or not</p><ul><li>Complies with OAuth2.0(Authorization related stuff like Authorization Code,Access token that Huawei use is originated from this standard) and OpenID Connect(Authorization + Authentication) security standards.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fog2ztz2DND4%3Fstart%3D27%26feature%3Doembed%26start%3D27&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dog2ztz2DND4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fog2ztz2DND4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d12eb503a439dbef9ecbdb66f28a0926/href">https://medium.com/media/d12eb503a439dbef9ecbdb66f28a0926/href</a></iframe><ul><li>It covers the methods and technics that embody these standards:</li></ul><p>— Authorization Code support</p><p>— ID Token support</p><p>— Basic User information()and email address can be obtained</p><p>— Authorization App Management</p><p>— Authorization Cancellation</p><p>Having a clear information on technical terms and explanations used in Huawei Account Kit’s application development process along with above details , it will provide us a great deal of easiness on learning exactly what the functions we have added to our application.Let’s examine next terms for this:</p><p><strong>Authorization Code:</strong>A code containing a unique string and an app secret which is used for one-time use authorization on OAuth Server.</p><p><strong>Application secret:</strong> The key that helps the HMS platform(Core) recognizes the application’s requests and responses and distinguishes them from other applications .</p><ul><li>For security , only App owner should know and must not share it iwth some one else .</li><li>It is also known as the secret key in the public key encryption technique</li><li>It is used to make sure that the application comes from its owner who knows the secret key (not from another hacker or source).</li></ul><p><strong>Access Token:</strong> Token used to access user resources at any time.</p><p><strong>ID Token:</strong> Identity information including the signature of the previously logged-in user for verification. ID Token is in JWT (JSON Web Token) format.</p><p><strong>JWT:</strong> JSON-based standard that ensures the security of each client request made through authorization.</p><p><strong>iss</strong> <em>(issuer, publisher)</em>: It is a JWT parameter containing internet address information that publishes the key information. (eg:<a href="https://accounts.huawei.com/">https://accounts.huawei.com</a>)</p><p><strong>aud </strong><em>(target audience)</em>: It is a JWK parameter where our application ID is kept. (ex: 300035233)</p><p><strong>exp</strong> <em>(expiration time)</em>: It is the JWT parameter that specifies the expiration date of our key. (ex: 1563823909)</p><p><strong>iat</strong> <em>(issued at, published date):</em> JWT parameter specifying the date when our key was first published (ex: 1563820309)</p><p>Validity period calculation:</p><p>1563823909-1563820309= 3600 sec, 3600 sec / 60 sec = 60 min</p><p><strong>kid (keyID):</strong> It is a JWT parameter used to distinguish the created keys .</p><p><strong>JWK (Json Web Key):</strong> It is a name given to the public key signed by the RS256 signing algorithm used to verify JSON Web Tokens provided by the authorization server (OAuth).</p><p><strong>Refresh Token:</strong> Token used to get the new access token when the old one expires.</p><p><strong>APK (Android Package):</strong> Package file format used by Android. It is used at the distribution of Android-based operating systems and for the installation of mobile applications and games.</p><p><strong>HMS Core:</strong> Android package prepared by Huawei, which provides rich device and cloud computing capabilities, facilitates efficient application development, extends fast growth and monetization options. Some of the kits execute their requests over HMS Core.</p><p>Once we are familiar with these concepts, we can begin to examine the flow of two processes for the operation of the Account Kit in the last part.</p><p>Account Kit offers two method options for user login:</p><blockquote><strong>1. Entry with authorization code</strong></blockquote><p>1.1 Transmits the application user’s authorization request to the HMS Core APK.</p><p>1.2 After the authorization request is received, the authorization permission page is displayed to the user. The user approves it.</p><p>1.3 The request is then directed to the Huawei OAuth Server and the Authorization Code is returned to the Application Client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QdHHdC_TD75pgYY1.png" /><figcaption>Authorization Code example</figcaption></figure><p>1.4 The application client sends the returned Authorization code to the Application Server.</p><p>1.5 The Application server uses this code and application secret to obtain the Access Token and Refresh Token from the Huawei OAuth Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hpqXic9R-cBnXFAP.png" /><figcaption>Acquired Access Token and Refresh Token example</figcaption></figure><p>1.6 The obtained Access Token and user profile are requested from the Huawei OAuth Server to complete the user login process.</p><p><strong>Note:</strong></p><p><em>Access Token validity time:</em> 1 hour</p><p><em>Renewal Token validity period:</em> 6 months</p><p>The relevant flow diagram can be accessed from the link below:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/login-authorization-code-0000001050050845">Document</a></p><blockquote><strong>2 . Login with ID Token</strong></blockquote><p>2.1 , 2.2 , 2.3 The same process progresses for the ID Token in the same way until the Authorization code is obtained. In ID token login method ,the ID token is acquired and returned to the application client from Huawei OAuth Server instead of authorization code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FZHa0qg8KICMyP1b.png" /><figcaption>ID Token example</figcaption></figure><p>2.4 The authorization message is transmitted from the Application client to the application server together with the Access Token and the basic user information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/0*bNlN8LJqhOOwdKhN.png" /><figcaption>Access Token example in <strong>Huawei Codelab</strong></figcaption></figure><p>2.5 Two different methods may be preferred for use for IDToken verification.</p><p>2.5.1 If the first local verification method is preferred, user login steps can be completed by verifying the validity of the ID Token on the application server through the signature. This authentication process is matching the <strong>kid </strong>parameter in the <strong>JWK </strong>format of the OAuth Server with the <strong>kid </strong>parameter in the header of the signature of the ID Token(in <strong>JWT </strong>format) obtained from the HMS Core APK and checking whether the <strong>iss</strong>,<strong>aud </strong>and <strong>exp </strong>parameters are correct.</p><p>2.5.2 In the second verification preference, the verification API on the HUAWEI Account Kit server is called for our own ID Token.</p><p><strong>Warning:</strong> The second preference is for debugging-oriented usage.This verification way may slow down application usage for users of weak network connection since it requires API call from the Huawei Account Server.Application that will be presented to end-user must apply the first local verification method on IDToken flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/0*qszWMoH93D8ThCHY.png" /><figcaption>Verification answer with user details provided by HUAWEI Account Kit server to request containing IDToken</figcaption></figure><p><strong>Note:</strong> It is not compulsory to send user information to Huawei OAuthServer in ID Token method.</p><p>Related flow diagram can be reached from link below:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/login-idtoken-0000001050050839">Document</a></p><p>If you think IDToken flow requires less steps like 5 for login completion rather than 6 steps on Authorization Code, you should also know that since there is no way to acquire refresh token from OAuth Server in ID Token mode,when access token expires in 1 hour ,all steps will be repeated to acquire access token again.Whereas the Authorization Code mode is only one step away to gain re-access to application with Refresh token</p><p>Compared to the two methods, Huawei suggests the <strong>Authorization Code</strong>.</p><ul><li>One reason for this is that it provides faster and more comfortable access in Authorization Code mode in a very short step when the above Access Token loses its validity every time.</li></ul><p><strong>Note:</strong> If you have an application that does not have an application server, the ID Token method is preferable because it does not require any application server.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFk6T_g9ROO8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFk6T_g9ROO8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFk6T_g9ROO8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/27137bfeaec77ca4d433ebfe911202b2/href">https://medium.com/media/27137bfeaec77ca4d433ebfe911202b2/href</a></iframe><ul><li><a href="https://developer.huawei.com/consumer/en/hms/huawei-accountkit">Account Kit - HUAWEI ID - HUAWEI Account Login Service - HUAWEI Developer</a></li><li><a href="https://developer.huawei.com/consumer/en/training/result?type1=101590551013513007&amp;type2=101590551113209009">Training - HUAWEI Developer</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c07aa152430" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/huawei-account-kit-explanation-and-terminology-6c07aa152430">Huawei Account Kit Explanation and Terminology</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huawei Hesap (Account) Kit Anlatım ve Terminolojisi]]></title>
            <link>https://medium.com/huawei-developers-tr/huawei-hesap-account-kit-anlat%C4%B1m-ve-terminolojisi-1a452c030599?source=rss-7774ed1311c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a452c030599</guid>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[hms-account]]></category>
            <category><![CDATA[huawei]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <dc:creator><![CDATA[Barıs Can Kurtulmus]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 20:28:45 GMT</pubDate>
            <atom:updated>2020-07-06T07:30:51.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>Huawei Account Kit Anlatım ve Terminolojisi</h3><blockquote>Huawei Mobil Servis geliştirme dünyasında adımlarını temel kavramları netleştirerek ilerlemekte bir mahzur görmeyen sevgili okur ,hoşgeldin.</blockquote><p>Bu yazım sadece teknik detaylara odaklanacak diğer Huawei Account Kit ile Geliştirmenin Temelleri odaklı yazıma ön hazırlık niteliğinde Huawei Account Kiti’nin özelliklerini, kavramsal işleyişini, Account Kit tabanlı terimleri ve açıklamalarını konu almaktadır.</p><h4>Tanımla başlayalım.</h4><p>Account Kit’inin görevi temelde 3. parti akıllı telefon uygulamalarına tek bir hesabı, Huawei ID’nizi kullanarak <strong>hızlı</strong>,<strong>basit </strong>ve <strong>güvenilir </strong>şekilde giriş yapmanızı sağlamasıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*u1fyvidsTTx9Uwih1ixt5w.png" /></figure><p>Kitin İngilizce resmi kaynaklarını incelediğinizde de hızlılık,basitlik ve güvenilirlik kavramlarının vurgulandığı anlaşılır . Hızlılık ve basitliğin nereden kaynaklandığını anlayabilmek için şu yönde bir gözlemden faydalanabiliriz:</p><p>Huawei App Gallery ve Google Play Store’a baktığınızda milyonlarca farklı görevleri yerine getiren mobil uygulamayı barındırdığını görürsünüz. Bunlardan bir kısmı mail adresi,telefon numarası ve şifre bilgisiyle kayıt gerektirdiği ve sizin de bu tip birçok uygulamada hesap açmanızın lazım olduğu düşünüldüğünde, her bir uygulama için ayrı ayrı kayıt ve onaylama adımını geçip ,güvenliği de dert ediyorsanız her biri için ayrı şifre bilgisi tutmanıza sebep olacaktır. Bu tip bir ayrımı önlemek amacıyla Huawei tarafında telefonunuzun ilk kullanımında bir kez oluşturulan tek bir <strong>HUAWEI ID</strong> kullanarak basitçe ve bütün uygulamalara kayıt sürecini en az adıma indirecek şekilde kullanıcıya hızlı giriş deneyimi sağlayan bir Mobil Servis birimi bulunur. Huawei Account Kit’i olarak bilinen bu birimi uygulamanıza entegre ettiğinizde kullanıcılılar için hızlılığı ve basitliği bu şekilde garanti altına almış olursunuz.</p><ul><li>Tek dokunuşla uygulamalara giriş (doğrulama veya giriş bilgilerini teker teker girmeden)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*2WCNnWCOBIVjLE19ASKWVg.png" /><figcaption><strong>Hepsine login olmanı sağlayacak bir kit, hepsini bulacak, hepsini bir araya getirecek ve Huawei App Gallery’de bağlayabilecek.</strong></figcaption></figure><blockquote><strong>Peki, bunların dışında Geliştiriciler neden Huawei Account Kit’ini tercih etmeli ?</strong></blockquote><ol><li><em>Bir çok farklı tipte cihaz desteği</em> : Akıllı telefon , Bilgisayar, Tablet, giyilebilir vb. cihazlara desteği göz önünde bulundurulduğunda sadece akıllı telefon piyasasındaki uygulamalar için değil , akıllı saatlar,tabletler gibi değişik kullanıcı portföylerini de içine alan uygulamalara destek verir.HUAWEI ID ile kolayca bu cihazlardaki uygulamalara giriş yapabilecek duruma ulaşırsınız.</li><li><em>Küresel erişim :</em> Sadece Türkiye üzerinde değil Huawei’in Dünya çapındaki 190dan fazla ülke ve bölgedeki mobil uygulama ağı ve marketinin bir parçası olmanıza yardımcı olur.</li><li><em>Güvenlik :</em> Global ve yerel güvenlik standartları ile uyumlu hesap güvenliği desteği sağlanır.Hesap yetkilendirmesi şifre bazlı veya cihaz bazlı tanımlanabilir.</li></ol><blockquote><strong>HUAWEI ID hesap koruma ve güvenilirlikte ne tür özellikler barındırıyor ?</strong></blockquote><ul><li>İki etmenli doğrulama (şifre ile ve doğrulama kodu ile)</li><li>Hesap Risk Kontrol Sistemi: Hesabın risk altında olup olmadığını gerçek zamanlı tespit eder.</li><li>Avrupa Birliği ve Yerel kullanıcı hesap kanun ve düzenlemelerine uygun hesap güvenliği sağlar.</li></ul><h4>Diğer Özellikler</h4><ul><li>SMS ile doğrulama : Uygulamanızın SMS mesajlarındaki doğrulama kodunu kullanabilmesine olanak verir.</li><li>QR Kod ile giriş: Telefon ,tablet gibi bir çok cihazdan uygulamalara giriş yapılmasını mümkün kılar.</li></ul><p>Güvenlik standartları ile ilgili bir detayı belirtmeden önce Doğrulama ve Yetkiledirme arasındaki farka bakalım:</p><p><strong><em>Doğrulama</em></strong><em>(Authentication)</em>: Kim olduğunu belirttiğiniz kişi olup olmadığınızı doğrulama</p><p><strong><em>Yetkilendirme</em></strong><em>(Authorization):</em>Bir kaynağa erişim için yetkiniz olup olmadığına kara verme</p><ul><li>OAuth2.0(Yetkilendirme kodu ,Erişim Tokenı gibi yetkilendirme ile ilgili Huawei’in kullandığı ifadeler bu standarttan kaynaklanır) ve OpenID Connect(Yetkilendirme + Doğrulama) güvenlik standartlarıyla uyumludur.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fog2ztz2DND4%3Fstart%3D27%26feature%3Doembed%26start%3D27&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dog2ztz2DND4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fog2ztz2DND4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d12eb503a439dbef9ecbdb66f28a0926/href">https://medium.com/media/d12eb503a439dbef9ecbdb66f28a0926/href</a></iframe><ul><li>Bu standartların bünyesinde bulundurduğu teknik ve yöntemleri kapsar:</li></ul><p>—Yetkilendirme Kodu desteği,</p><p>— ID Token desteği</p><p>—Temel Kullanıcı bilgileri(profil resmi,takma isim,özgün kullanıcı IDsi) ve email adresi elde edilebilir.</p><p>—Yetkilendirme Uygulama Yönetimi(Authorization app management)</p><p>— Yetkilendirme iptali (Authorization Cancellation)</p><p>Üstte yer alanlarla birlikte Huawei Developer Sitesindeki kaynaklarda Account kit ile uygulama geliştirme sürecinde kullanılan teknik ifadeler ve karşılıkları hakkında daha net bir bilgiye sahip olmak ordaki adımları takip ederken uygulamamızın içeriğine dahil ettiğimiz fonksiyonların tam anlamıyla neler kattığını öğrenmemizde büyük kolaylık sağlayacaktır.Bunun için aşağıdaki <strong>terimler</strong>i inceleyelim:</p><p><strong><em>Yetkinlendirme Kodu</em></strong><em>(Authorization Code)</em>: OAuth Sunucusunda tek seferlik kullanıma yönelik yetkilendirme için kullanılan ,içinde özgün bir karakter dizisi ve belirlenmiş uygulama gizi(app secret)’nin yer aldığı kod.</p><p><strong><em>Uygulama gizi</em></strong><em>:</em> HMS tarafındaki uygulamadan giden istek ve cevaplarda ,HMS platform tarafının uygulamayı tanımasına ,diğer uygulamalardan ayırmasına yardımcı olan anahtar.</p><ul><li>Güvenlik için yalnızca uygulama sahibi bilir ve paylaşmaması gerekir.</li><li>Açık anahtar şifreleme tekniğindeki gizli anahtar olarakta bilinir.</li><li>Uygulamanın gizli anahtarı bilen sahibi tarafından geldiğine(başka bir hacker ya da kaynaktan değil) emin olunabilmesi için kullanılır.</li></ul><p><strong><em>Erişim Tokenı</em></strong><em>(Access Token):</em> Kullanıcı kaynaklarına herhangi bir anda ulaşmak için kullanılan Token.</p><p><strong><em>ID Token</em></strong><em>: </em>Önceden giriş yapmış kullanıcının doğrulama için imzasını da içeren kimlik bilgisi. ID Token JWT (JSON Web Token) formatındadır.</p><p><strong>JWT</strong>: Yetkilendirme yoluyla gerçekleştirilen her bir istemci isteğinin(client request) güvenliğini sağlayan JSON tabanlı standart.</p><p><strong><em>iss</em></strong><em>(issuer,yayınlayan): Key bilgisi yayınlayan internet adres bilgisini içeren </em>JWT parametresidir.(örn: <a href="https://accounts.huawei.com/">https://accounts.huawei.com</a> )</p><p><strong><em>aud</em></strong><em>(audience,hedef kitle):</em><strong><em> </em></strong>Uygulamamızın ID’sinin tutulduğu JWK parametresidir.(örn: 300035233)</p><p><strong><em>exp</em></strong><em>(expiration time,son kullanma tarihi):</em> Keyimizin geçerli olduğu son tarihi belirten<em> </em>JWT parametresidir.(örn: 1563823909)</p><p><strong>iat</strong><em>(issued at,yayınlanma tarihi): </em>Keyimizin ilk yayınlandığı tarihi belirten<em> </em>JWT parametresidir(örn:1563820309)</p><p>Geçerlilik süresi hesabı:</p><p>1563823909-1563820309= 3600 saniye, 3600 sny / 60 sny = 60 dakika</p><p><strong>kid</strong>(keyID): Oluşturulan keylerin kendi aralarında farklılıklarını belirtmek amacı için kullanılan JWT parametresidir.</p><p><strong><em>JWK</em></strong><em>(Json Web Key)</em><strong><em>: </em></strong>Yetkilendirme sunucusunun(OAuth) sağladığı JSON Web Tokenların doğrulanmasında kullanılan RS256 imzalama algoritması ile imzalanan (public key)açık anahtara verilen isimdir.</p><p><strong><em>Yenileme/Tazeleme Tokenı</em></strong><em>(Refresh Token): </em>Eski erişim tokenının geçerliliği bittiğinde yeni giriş token’ı alabilmek için kullanılan Token.</p><p><strong>APK</strong>(Android Package): Android tarafından kullanılan paket dosya formatıdır. Android tabanlı işletim sistemlerinin dağıtımı ve mobil uygulama ve oyunların yüklenmesinde kullanılır.</p><p><strong>HMS Core </strong>:<strong> </strong>Huawei tarafından hazırlanmış zengin cihaz ve bulut bilişim kabiliyetleri sağlayan verimli uygulama geliştirmeyi kolaylaştıran , hızlı büyüme ve uygulamalardan para kazanma olanaklarını esneten bir yapı sunan android paketidir .Kitlerin bazıları istemlerini HMS Core üstünden yürütür.</p><p>Bu kavramlara aşina olduktan sonra son kısımda Account Kit’inin işleyişine yönelik 2 süreç akışını inceleyemeye başlayabiliriz:</p><p>Account Kiti kullanıcı girişi için iki yöntemi seçenek olarak sunar :</p><blockquote><strong>1. Yetkilendirme kodu ile giriş</strong></blockquote><p>1.1 Uygulama kullanıcının yetkilendirme isteğini HMS Core APK’e iletir.</p><p>1.2 Yetkilendirme isteği alındıktan sonra kullanıcıya yetkilendirme izni sayfası gösterilir.Kullanıcı onaylar.</p><p>1.3 Sonrasında istek Huawei OAuth Sunucusu’na yönlendirilir ve <em>Yetkilendirme Kodu</em> uygulama istemcisine(Application Client) döndürülmüş olur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yALTO8jdOoa0Evmi1v__hA.png" /><figcaption>Yetkilendirme Kodu örneği</figcaption></figure><p>1.4 Uygulama istemcisi Uygulama Sunucusuna(Application Server) döndürülen <em>Yetkilendirme kodu</em>nu gönderir.</p><p>1.5 Uygulama sunucusu bu kodu ve uygulama gizini Erişim Tokenını ve Yenileme Tokenını Huawei OAuth Sunucusu’ndan elde etmek için kullanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rnDcMV79U4LR7SIV-R-fg.png" /><figcaption>Elde edilen Erişim Tokenı ve Yenileme Tokenı</figcaption></figure><p>1.6 Elde edilen Erişim Token’ı ile kullanıcı profili Huawei OAuth Sunucusundan istenerek kullanıcı giriş süreci tamamlanır.</p><p><strong>Not:</strong></p><p><em>Erişim Tokenı geçerlilik süresi</em>: 1 saat</p><p><em>Yenileme Tokenı geçerlilik süresi</em>: 6 ay</p><p>İlgili akış diyagramına alttaki linkten ulaşılabilir:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/login-authorization-code-0000001050050845">Document</a></p><blockquote><strong>2 . ID Token ile giriş</strong></blockquote><p>2.1 , 2.2 , 2.3 Aynı süreç Yetkilendirme kodunun elde edilmesine kadarki süreçle aynı şekilde ID Token için de ilerler. Fakat ID Token giriş yönteminde Huawei OAuth Sunucusu’ndan elde edilip uygulama istemcisine döndürülen bilgi Yetkilendirme kodu değil ID Tokendır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD8nwuESJZlQh1Jh5DaAEQ.png" /><figcaption>ID Token örneği</figcaption></figure><p>2.4 Yetkilendirme mesajı Erişim Kodu ve temel kullanıcı bilgileri de içeren IDToken ile birlikte Uygulama istemcisinden uyguluma sunucuna iletilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*TNKRorZ4WOLvzlGdKpLMlw.png" /><figcaption><strong>Huawei Codelab</strong>’da yer alan Access Token örneği</figcaption></figure><p>2.5 IDToken’ın doğrulanması için kullanılmak üzere iki ayrı metot tercih edilebilir.</p><p>2.5.1 Birinci yerel doğrulama metodu tercih edilirse uygulama sunucusunda ID Tokenın geçerliliğinin imzası üzerinden doğrulanması ile kullanıcı giriş adımları bitirelebilir .Bu doğrulama işlemi <strong>JWT</strong> formatındaki ID Token’ın HMS Core APK’den elde edilen imzasının header’ındaki <strong>kid </strong>paramatresi ile OAuth Sunucusunun <strong>JWK </strong>formatındaki <strong>kid</strong> parametresinin eşleşmesi ve <strong>iss</strong>,<strong>aud </strong>ve <strong>exp </strong>parametrelerinin doğru değerleri alıp almadığının kontrolü ile gerçekleşir.</p><p>2.5.2 İkinci doğrulama tercihinde ise HUAWEI Account Kit sunucusundaki doğrulama API’ı kendi ID Tokenımız için çağrılarak gerçekleştirilir.</p><p><strong>Uyarı:</strong>İkinci tercih debug amaçlı kullanım içindir.Huawei Account Sunucusundan API çağrımı gerektirecek bu doğrulama zayıf ağ bağlantısı ile kullanımlarda yavaşlamaya sebep olabilir.Son kullanıcıyla buluşacak uygulamarda birinci yerel doğrulama tercihi ile ilerlenmelidir!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*JTyCfimifLrkPYnUtXRQ7g.png" /><figcaption>HUAWEI Account Kit sunucusunun IDToken içeren isteğe verdiği kullanıcı detaylarının bulunduğu doğrulama cevabı</figcaption></figure><p><strong>Not:</strong> ID Token yönteminde kullanıcı bilgisi Huawei OAuth Sunucusu’na gönderilmek zorunda değildir.</p><p>İlgili akış diyagramına alttaki linkten ulaşılabilir:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/login-idtoken-0000001050050839">Document</a></p><p>IDToken’da 5 adım gibi daha az adımda yetkilendirmenin tamamlanacağı düşünülse de Erişim Tokenının geçerlilik süresi dolduğu durumda bu yöntemde OAuth sunucusu’ndan refresh token elde etmek mümkün olmadığından tekrar erişim kazanabilmek için Erişim Token’ının elde edileceği bütün adımlar tekrarlanmak zorundadır.Oysaki Yetkilendirme Kodu yönteminde Yenileme Token’ı ile sadece 1 adımda uygulamaya tekrar erişim hakkı kazanılabilir.</p><p>İki yöntem karşılaştırıldığında Huawei tarafında önerilen metot <strong>Yetkilendirme Kodu</strong> ile giriştir.</p><ul><li>Bunun bir sebebi üstte belirtilen Erişim Token’ının her geçerliliğini yitirdiğinde <em>Yetkilendirme Kodu</em> metodu ile çok kısa adımda tekrar erişim kazanılması ile daha hızlılığa ve rahatlığa imkan sağlamasıdır.</li></ul><p><strong>Not: </strong>Eğer uygulama sunucusu olmayan bir uygulamaya sahipseniz, <em>ID Token</em> yöntemi uygulama sunucusu bulundurma mecburiyeti olmadığından tercih edilebilir.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFk6T_g9ROO8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFk6T_g9ROO8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFk6T_g9ROO8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8cb89a2b5646a64a9fd481a70acda3f3/href">https://medium.com/media/8cb89a2b5646a64a9fd481a70acda3f3/href</a></iframe><p><strong>Yardımcı kaynak linkleri:</strong></p><ul><li><a href="https://developer.huawei.com/consumer/en/hms/huawei-accountkit">Account Kit - HUAWEI ID - HUAWEI Account Login Service - HUAWEI Developer</a></li><li><a href="https://developer.huawei.com/consumer/en/training/result?type1=101590551013513007&amp;type2=101590551113209009">Training - HUAWEI Developer</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a452c030599" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/huawei-hesap-account-kit-anlat%C4%B1m-ve-terminolojisi-1a452c030599">Huawei Hesap (Account) Kit Anlatım ve Terminolojisi</a> was originally published in <a href="https://medium.com/huawei-developers-tr">Huawei Developers - Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>