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

技術書典に出した雰囲気OAuth本の紹介と10分でわかった気になるOAuth2.0

 技術書典に出した雰囲気OAuth本の紹介と10分でわかった気になるOAuth2.0

2019/05/29 Identity Dance School #iddance Lesson1
技術書典6に出した雰囲気OAuth本を中身をギュッと圧縮して10分で説明しました。
題して「10分でわかった気になるOAuth2.0」

表紙にはできたてホヤホヤのロゴをとってつけました。

Auth屋

May 29, 2019
Tweet

More Decks by Auth屋

Other Decks in Technology

Transcript

  1. ٕज़ॻయʹग़ͩͨ͠

    งғؾ0"VUIຊͷ঺հ

    View full-size slide

  2. ຊͷ঺հ
    w ٕज़ॻయ
    w 0"VUIͷجຊతͳ༻
    ޠŊ֓೦Ŋ࢓૊ΈΛղઆ

    View full-size slide

  3. IUUQTCPPUIQNKBJUFNT
    #005)Ͱചͬͯ·͢

    View full-size slide

  4. w ೥લʹೝՄαʔόʔΛ୲౰
    w JEDPOʹग़ͯΈ͕ͨΘ͔ΒΜ
    w ࣗ෼΋ؚΊͨΏΔ;Θ੎޲͚ʹೝূೝ
    ՄωλͷಉਓࢽΛॻ͍͍ͯ͘༧ఆ

    "VUI԰JT୭ʁ

    View full-size slide

  5. ೝূŋೝՄ·ΘΓͰΘ͔Βͳ͍͜ͱ͕͋ͬ
    ͨΒUXJUUFSͰฉ͍ͯԼ͍͞Ň
    !BVUIZBTBO

    View full-size slide

  6. ͨͩ͠ŊňΏΔ;Θ੎ʼnݶఆͳ

    View full-size slide

  7. ຊͷ಺༰Λ

    ෼ʹ·ͱΊͨ

    View full-size slide

  8. ෼ͰΘ͔ͬͨؾʹͳΔ
    0"VUI

    View full-size slide

  9. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  10. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  11. ొ৔ਓ෺

    View full-size slide

  12. ొ৔ਓ෺
    ň(PPHMF1IPUPʹอଘʼnػೳ

    αʔυύʔςΟΞϓϦ

    View full-size slide

  13. ࣸਅŋΞϧόϜͳͲͷ
    ϦιʔεΛอ࣋
    ొ৔ਓ෺

    View full-size slide

  14. ొ৔ਓ෺ (PPHMF1IPUP΁ͷΞΫηε؅ཧ

    ΞΫηετʔΫϯൃߦ

    View full-size slide

  15. ը૾ฤूΞϓϦͷϢʔβʔ

    (PPHMF1IPUPͷϢʔβʔ
    ొ৔ਓ෺

    View full-size slide

  16. ొ৔ਓ෺
    ը૾ฤूΞϓϦͷϢʔβʔ

    (PPHMF1IPUPͷϢʔβʔ
    (PPHMF1IPUP΁ͷΞΫηε؅ཧ

    ΞΫηετʔΫϯൃߦ
    ࣸਅŋΞϧόϜͳͲͷ
    ϦιʔεΛอ࣋
    αʔυύʔςΟΞϓϦ

    ň(PPHMF1IPUPʹอଘʼn
    ػೳ

    View full-size slide

  17. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  18. w ňݖݶͷҕৡʼnͷϓϩτίϧ
    w ň(PPHMF1IPUPʹը૾ΛΞοϓϩʔυ
    ͢ΔݖݶʼnΛϢʔβʔ͔Βը૾ฤूΞϓ
    Ϧʹҕৡ
    0"VUIͱ͸Կ͔

    View full-size slide

  19. ݖݶҕৡͷྲྀΕ

    View full-size slide

  20. (PPHMF1IPUPʹ

    ը૾Ξοϓϩʔυ͍ͨ͠
    ݖݶҕৡͷྲྀΕ

    View full-size slide

  21. ݖݶҕৡͷྲྀΕ ňը૾ฤूΞϓϦ͕

    (PPHMF1IPUPʹը૾Ξοϓͨ͠
    ͍ʼn͍ͬͯͬͯΔ͚ͲŊڐՄ͢Δʁ

    View full-size slide

  22. ڐՄ͠·͢
    ݖݶҕৡͷྲྀΕ

    View full-size slide

  23. ڐՄ͕ͰͨͷͰ

    ΞΫηετʔΫϯͲ͏ͧ
    ݖݶҕৡͷྲྀΕ

    View full-size slide

  24. Ϣʔβʔ͞Μͷ

    ը૾Ξοϓϩʔυ͠·͢

    ΞΫηετʔΫϯ΋͋ΔΑ
    ݖݶҕৡͷྲྀΕ

    View full-size slide

  25. Ͳ͏ͧ
    ݖݶҕৡͷྲྀΕ

    View full-size slide

  26. w ňݖݶͷҕৡʼnͷϓϩτίϧ
    w ň(PPHMF1IPUPʹը૾ΛΞοϓϩʔυ
    ͢ΔݖݶʼnΛϢʔβʔ͔Βը૾ฤूΞϓ
    Ϧʹҕৡ
    0"VUIͱ͸Կ͔

    View full-size slide

  27. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  28. 0"VUI͕͋Δੈք

    View full-size slide

  29. 0"VUI͕ͳ͍ੈք

    View full-size slide

  30. 0"VUI͕ͳ͍ੈք
    (PPHMFͷ*%1BTTXPSE
    (PPHMFͷ*%1BTTXPSE

    View full-size slide

  31. 0"VUI͕ͳ͍ੈք
    Ϣʔβʔͷ

    (PPHMFͷ*%1BTTXPSEΛ
    ஌ΕΔ

    View full-size slide

  32. 0"VUI͕ͳ͍ੈք
    Ϣʔβʔͷ

    (PPHMFͷ*%1BTTXPSEΛ
    ஌ΕΔ
    ѱҙͷ͋Δ

    View full-size slide

  33. ϢʔβʔʹͳΓ͢·ͯ͠

    ͳΜͰ΋Ͱ͖ͪΌ͏
    0"VUI͕ͳ͍ੈք
    ѱҙͷ͋Δ

    View full-size slide

  34. Ξοϓϩʔυ͔͠Ͱ͖ͳ͍

    ͔͠΋༗ޮظݶ͕͋Δ
    0"VUI͕͋Δੈք
    ѱҙͷ͋Δ

    View full-size slide

  35. w ը૾ฤूΞϓϦʹ(PPHMFͷ*%
    1BTTXPSEΛڭ͑ͳͯ͘Α͍Ň
    0"VUI͸ͳʹ͕͏Ε͍͠

    View full-size slide

  36. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  37. w ೝՄίʔυ
    w ΠϯϓϦγοτ
    w ΫϥΠΞϯτΫϨσϯγϟϧ
    w ϦιʔεΦʔφʔύεϫʔυΫϨσϯγϟϧ
    άϥϯτλΠϓ ϑϩʔ

    View full-size slide

  38. w ೝՄίʔυ
    w ΠϯϓϦγοτ
    w ΫϥΠΞϯτΫϨσϯγϟϧ
    w ϦιʔεΦʔφʔύεϫʔυΫϨσϯγϟϧ
    άϥϯτλΠϓ ϑϩʔ

    View full-size slide

  39. ೝՄίʔυάϥϯτ

    ͷઆ໌ʹೖΔલʹ

    View full-size slide

  40. (PPHMF1IPUPΛ࢖͏Ξ
    ϓϦͱͯ͠ొ࿥͕ඞཁ
    ΫϥΠΞϯτͷࣄલొ࿥

    View full-size slide

  41. (PPHMF%FWFMPQFS$POTPMF
    IUUQTDPOTPMFEFWFMPQFSTHPPHMFDPN

    View full-size slide

  42. (PPHMF%FWFMPQFS$POTPMF
    (PPHMF%FWFMPQFS$POTPMF
    ϦμΠϨΫτ63*ͷొ࿥

    View full-size slide

  43. (PPHMF%FWFMPQFS$POTPMF
    ΫϥΠΞϯτ*%

    ΫϥΠΞϯτγʔΫϨοτ

    ൃߦ

    View full-size slide

  44. ΫϥΠΞϯτ*%

    ΫϥΠΞϯτγʔΫϨοτ
    ΫϥΠΞϯτͷࣄલొ࿥

    View full-size slide

  45. ը૾ฤूΞϓϦͷ

    ϦμΠϨΫτ63*
    ΫϥΠΞϯτͷࣄલొ࿥

    View full-size slide

  46. 0"VUI͕ͳ͍ੈք ໰୊

    ѱҙͷ͋Δ
    Ϣʔβʔͷ

    (PPHMFͷ*%1BTTXPSEΛ
    ஌ͬͯΔ

    View full-size slide

  47. ΍͹͍ΞϓϦʹ

    (PPMHFͷ*%ύεϫʔυ

    ͓͑ͯ͠͠·ͬͨ
    ѱҙͷ͋Δ
    0"VUI͕ͳ͍ੈք ໰୊

    View full-size slide

  48. (PPHMFͷύεϫʔυΛ

    ม͑Δ͔͠ͳ͍
    ѱҙͷ͋Δ
    0"VUI͕ͳ͍ੈք ໰୊

    View full-size slide

  49. ѱҙͷ͋Δ
    ΞΫηεΛःஅ
    0"VUI͕ͳ͍ੈք ໰୊

    View full-size slide

  50. ผͷ(PPHMF1IPUPΛ࢖͏

    ΞϓϦ͔Βͷ

    ΞΫηε΋ःஅͯ͠͠·͏
    ѱҙͷ͋Δ
    0"VUI͕ͳ͍ੈք ໰୊

    View full-size slide

  51. ňը૾ฤूΞϓϦʼn͚ͩ

    ΞΫηεΛःஅ
    0"VUI͕͋Δੈք
    ѱҙͷ͋Δ

    View full-size slide

  52. 0"VUI͕ͳ͍ੈք ໰୊

    ߈ܸͨ͠Ζ

    View full-size slide

  53. *%1BTTXPSEήοτʂ
    0"VUI͕ͳ͍ੈք ໰୊

    View full-size slide

  54. ߈ܸͨ͠Ζ
    0"VUI͕͋Δੈք

    View full-size slide

  55. ήοτͰ͖ͨͷ͸

    Ξοϓϩʔυݖݶ͕ඥ෇͍ͨ

    ΞΫηετʔΫϯ

    ͔͠΋༗ޮظݶ͋Γ
    0"VUI͕͋Δੈք

    View full-size slide

  56. ೝՄίʔυάϥϯτ

    αʔόʔαΠυͷΞϓϦ

    View full-size slide

  57. ͭͷ4UFQʹΘ͚ͯ
    ཧղ͢Δ

    View full-size slide

  58. 4UFQ

    Ϣʔβʔ͕

    ݖݶҕৡ

    ೝՄίʔυൃߦ


    View full-size slide

  59. 4UFQ


    ΫϥΠΞϯτೝূ




    ΞΫηετʔΫϯൃߦ


    View full-size slide

  60. 4UFQ

    Ϣʔβʔ͕

    ݖݶҕৡ

    ೝՄίʔυൃߦ


    View full-size slide

  61. ň(PPHMF1IPUP΁อଘʼnϘλϯ

    View full-size slide

  62. (PPHMF1IPUP΁ͷ

    ը૾Ξοϓϩʔυݖݶ͍ͩ͘͞

    View full-size slide

  63. ೝՄϦΫΤετ

    View full-size slide

  64. (&5BVUIPSJ[F
    SFTQPOTF@UZQFDPEF
    DMJFOU@JEŋŋŋŋBQQTHPPHMFVTFSDPOUFOUDPN
    TDPQFVQMPBE

    ೝՄϦΫΤετ

    View full-size slide

  65. ϨεϙϯελΠϓೝՄίʔυ
    ೝՄϦΫΤετ
    (&5BVUIPSJ[F
    SFTQPOTF@UZQFDPEF
    DMJFOU@JEŋŋŋŋBQQTHPPHMFVTFSDPOUFOUDPN
    TDPQFVQMPBE

    View full-size slide

  66. ΫϥΠΞϯτ*%
    ೝՄϦΫΤετ
    (&5BVUIPSJ[F
    SFTQPOTF@UZQFDPEF
    DMJFOU@JEŋŋŋŋBQQTHPPHMFVTFSDPOUFOUDPN
    TDPQFVQMPBE

    View full-size slide

  67. (&5BVUIPSJ[F
    SFTQPOTF@UZQFDPEF
    DMJFOU@JEŋŋŋŋBQQTHPPHMFVTFSDPOUFOUDPN
    TDPQFVQMPBE

    είʔϓཁٻ͢ΔΞΫηεݖݶ
    ೝՄϦΫΤετ

    View full-size slide

  68. ೝՄϦΫΤετ

    View full-size slide

  69. ϦιʔεΦʔφʔͷೝূ
    ͱ

    ΫϥΠΞϯτ΁ͷݖݶҕৡͷڐՄ

    View full-size slide

  70. (PPHMF΁ͷϩάΠϯ

    View full-size slide

  71. ݖݶҕৡͷ֬ೝ

    View full-size slide

  72. ΋͏Ұճ֬ೝ

    View full-size slide

  73. ೝՄίʔυൃߦ͠·͢ʂ

    View full-size slide

  74. ϦμΠϨΫτ63*ʹ

    ΫΤϦύϥϝʔλͱͯ͠

    ೝՄίʔυΛ෇͚Δ

    View full-size slide




  75. )551'PVOE
    -PDBUJPOIUUQTFYBNQMFDPNDBMMCBDL DPEF4QMYM0#ʜ

    View full-size slide

  76. ϦμΠϨΫτ63*



    )551'PVOE
    -PDBUJPOIUUQTFYBNQMFDPNDBMMCBDL DPEF4QMYM0#ʜ

    View full-size slide

  77. ΫΤϦύϥϝʔλͱͯ͠ೝՄίʔυ



    )551'PVOE
    -PDBUJPOIUUQTFYBNQMFDPNDBMMCBDL DPEF4QMYM0#ʜ

    View full-size slide

  78. ೝՄίʔυ͕ΫϥΠΞϯτʹ౉Δ

    View full-size slide

  79. 4UFQ

    Ϣʔβʔ͕

    ݖݶҕৡ

    ೝՄίʔυൃߦ


    View full-size slide

  80. 4UFQ


    ΫϥΠΞϯτೝূ




    ΞΫηετʔΫϯൃߦ


    View full-size slide

  81. ΞΫηετʔΫϯൃߦͯ͘͠Ε΍

    View full-size slide

  82. τʔΫϯϦΫΤετ

    View full-size slide

  83. 1045UPLFO
    $POUFOU5ZQFBQQMJDBUJPOYXXXGPSNVSMFODPEFE
    "VUIPSJ[BUJPO#BTJD/KDZ/[CWWB9WWB9WWB9WWB7ID)#[-
    HSBOU@UZQFBVUIPSJ[BUJPO@DPEF
    DPEF4QMYM0#F;22:C:48Y4C*"

    τʔΫϯϦΫΤετ

    View full-size slide

  84. 1045UPLFO
    $POUFOU5ZQFBQQMJDBUJPOYXXXGPSNVSMFODPEFE
    "VUIPSJ[BUJPO#BTJD/KDZ/[CWWB9WWB9WWB9WWB7ID)#[-
    HSBOU@UZQFBVUIPSJ[BUJPO@DPEF
    DPEF4QMYM0#F;22:C:48Y4C*"

    τʔΫϯϦΫΤετ
    #BTJDೝূ

    ΫϥΠΞϯτ*%
    ΫϥΠΞϯτγʔΫϨοτ


    View full-size slide

  85. 1045UPLFO
    $POUFOU5ZQFBQQMJDBUJPOYXXXGPSNVSMFODPEFE
    "VUIPSJ[BUJPO#BTJD/KDZ/[CWWB9WWB9WWB9WWB7ID)#[-
    HSBOU@UZQFBVUIPSJ[BUJPO@DPEF
    DPEF4QMYM0#F;22:C:48Y4C*"

    άϥϯτλΠϓ͸

    ೝՄίʔυάϥϯτ
    τʔΫϯϦΫΤετ

    View full-size slide

  86. 1045UPLFO
    $POUFOU5ZQFBQQMJDBUJPOYXXXGPSNVSMFODPEFE
    "VUIPSJ[BUJPO#BTJD/KDZ/[CWWB9WWB9WWB9WWB7ID)#[-
    HSBOU@UZQFBVUIPSJ[BUJPO@DPEF
    DPEF4QMYM0#F;22:C:48Y4C*"

    τʔΫϯϦΫΤετ
    ೝՄίʔυͷ஋

    View full-size slide

  87. τʔΫϯϦΫΤετ

    View full-size slide

  88. τʔΫϯϨεϙϯε

    View full-size slide

  89. \
    lBDDFTT@UPLFOz"58Q,-
    lFYQJSFT@JO
    lUPLFO@UZQF#FBSFS
    ^
    τʔΫϯϨεϙϯε

    View full-size slide

  90. \
    lBDDFTT@UPLFOz"58Q,-
    lFYQJSFT@JO
    lUPLFO@UZQF#FBSFS
    ^
    τʔΫϯϨεϙϯε
    ΞΫηετʔΫϯ

    View full-size slide

  91. \
    lBDDFTT@UPLFOz"58Q,-
    lFYQJSFT@JO
    lUPLFO@UZQF#FBSFS
    ^
    τʔΫϯϨεϙϯε
    ΞΫηετʔΫϯͷ༗ޮظݶ<ඵ>

    View full-size slide

  92. \
    lBDDFTT@UPLFOz"58Q,-
    lFYQJSFT@JO
    lUPLFO@UZQF#FBSFS
    ^
    τʔΫϯϨεϙϯε
    ϕΞϥʔτʔΫϯ

    View full-size slide

  93. τʔΫϯϨεϙϯε

    View full-size slide

  94. ΞΫηετʔΫϯΛήοτʂ

    View full-size slide

  95. ϔομʔʹΞΫηετʔΫϯ
    Ληοτͯ͠

    ը૾Ξοϓϩʔυ

    View full-size slide

  96. w 0"VUIͷొ৔ਓ෺
    w 0"VUIͱ͸Կ͔
    w 0"VUI͸Կ͕͏Ε͍͠
    w ೝՄίʔυάϥϯτ͸

    Ͳ͏͍͏΍ΓऔΓͯ͠Δͷ͔
    ΰʔϧɿҎԼΛΘ͔ͬͨؾʹͳΔ

    View full-size slide

  97. w ΤϯυϙΠϯτ
    w είʔϓ
    w ϦϑϨογϡτʔΫϯ
    w 4UBUF
    w ଞͷάϥϯτλΠϓ
    w ϕΞϥʔτʔΫϯ
    w FUD
    ࠓ೔;Ε͍ͯͳ͍͜ͱ

    View full-size slide

  98. IUUQTCPPUIQNKBJUFNT
    #005)Ͱചͬͯ·͢

    View full-size slide

  99. ೝূŋೝՄ·ΘΓͰΘ͔Βͳ͍͜ͱ͕͋ͬ
    ͨΒUXJUUFSͰฉ͍ͯԼ͍͞Ň
    !BVUIZBTBO

    View full-size slide