Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sign In with Apple

Sign In with Apple

CA.swift #9 WWDC19報告会
https://cyberagent.connpass.com/event/129850/

Takeshi Ihara

June 19, 2019
Tweet

More Decks by Takeshi Ihara

Other Decks in Programming

Transcript

  1. ؔ࿈ηογϣϯ • Introducing Sign In with Apple (Session 706) •

    What’s New in Authentication, Safari, and WebKit (Session 504)
  2. ࠓ೔࿩͢͜ͱ • Sign In with Apple ͱ͸ • Sign In

    with Apple ͷߏ଄ • LabͰ࣭໰͖ͯͨ͜͠ͱ
  3. Sign In with Apple ͱ͸ • Respect for privacy ɾ໊લͱϝʔϧΞυϨε͔͠औಘͰ͖ͳ͍

    ɾαʔϏε͝ͱʹPrivateͳϝʔϧΞυϨεΛൃߦՄೳ ɾApple͸αʔϏε಺ͷߦಈΛ௥੻͠ͳ͍
  4. Sign In with Apple ͱ͸ • Security Built in ɾ2ஈ֊ೝূΛઃఆ͍ͯ͠ΔApple

    IDͷΈར༻Մೳ ɾAppleσόΠεͰ͸Face ID or Touch IDͰαΠϯΠϯՄೳ
  5. Sign In with Apple ͱ͸ • Works everywhere ɾiOS, macOS,

    tvOS, watchOS, ϒϥ΢βͰಈ࡞Մೳ
  6. Sign In with Apple ͷߏ଄ 1. Sign In with Apple

    2. Ϣʔβʔ৘ใΛཁٻ 3. Ϣʔβʔࣝผࢠͱ৘ใ 5. ΞΧ΢ϯτ 4. Ϣʔβʔࣝผࢠʹج͍ͮͯΞΧ΢ϯτ࡞੒
  7. Sign In with Apple ͷߏ଄ 1. Sign In with Apple

    JS 2. Ϣʔβʔ৘ใΛཁٻ 5. ΞΧ΢ϯτ 4. Ϣʔβʔࣝผࢠʹج͍ͮͯΞΧ΢ϯτ࡞੒ 3. ࢦఆͨ͠URLʹϦμΠϨΫτ
  8. App ID App ID App ID Apple Developer Team •

    ڞ௨ͷUserࣝผࢠ • PrivateͳEmailΞυϨεʹૹ৴ՄೳͳυϝΠϯ·ͨ͸ݸผΞυϨε • OAuth΍OpenID ConnectͷΑ͏ͳೝূن֨ͷKey܈
  9. Service ID Apple Developer Team Primary App ID App ID

    • ڞ௨ͷServiceࣝผࢠ • ServiceࣝผࢠΛ༻͍ͯϒϥ΢βͰαΠϯΠϯՄೳ • Serviceຖʹڞ௨ͷPrivateͳEmailΞυϨε ϒϥ΢β (ొ࿥ෆཁ) App ID • ୯ҰͷAppͷ৔߹͸Service IDෆཁ • PrivateͳEmailΞυϨε • ڞ௨ͷUserࣝผࢠ • PrivateͳEmailΞυϨεʹૹ৴ՄೳͳυϝΠϯ·ͨ͸ݸผΞυϨε • OAuth΍OpenID ConnectͷΑ͏ͳೝূن֨ͷKey܈
  10. Lab Ͱ࣭໰͖ͯͨ͜͠ͱ • PrivateͳΞυϨεʹϝʔϧΛૹ৴͢Δํ๏ • PrivateͳΞυϨεͷRevoke • Sign In with

    Apple JS ͰͷϢʔβʔ৘ใͷऔΓํ • 3rd PartyϩάΠϯͷϘλϯΑΓ্ʹஔ͔ͳ͍৔߹͸ϦδΣΫτର৅͔ʁ • 3rd PartyϩάΠϯΛαϙʔτ͍ͯ͠ΔΞϓϦͰɺSign In with Apple Λαϙʔ τ͠ͳ͍৔߹͸ϦδΣΫτର৅͔ʁ • AuthenticationServices.ASFoundationͱ͸ͳʹ͔ʁ
  11. PrivateͳΞυϨεʹϝʔϧΛૹ৴͢Δํ๏ • Apple Developer Ͱࣄલʹొ࿥ͨ͠υϝΠϯ·ͨ͸ΞυϨεͰૹΕΔ • ૹ৴ऀͱड৴ऀ͕ಉҰͩͱૹΕͳ͍ • Sign In

    with Apple Λෳ਺ͨ͠ͱ͖ʹɺ࠷ॳʹੜ੒͞ΕͨΞυϨεͷΈ༗ޮ ɾຖճಉ͡ΞυϨε͕ੜ੒͞ΕΔΑ͏ʹमਖ਼͞Εͯ·ͨ͠ (2019.06.19)
  12. 3rd PartyϩάΠϯͷϘλϯΑΓ্ʹஔ͔ͳ͍৔߹͸
 ϦδΣΫτର৅͔ʁ • In a stacked layout, place the

    Sign In with Apple button above the other buttons. ɾhttps://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/ • HIG͔Β্هจݴ͕࡟আ͞Ε͍ͯ·ͨ͠ (2019.06.19)