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

SmartHR における Authlete の活用

SmartHR における Authlete の活用

Authlete Partner Meetup Spring 2019 での登壇資料です

Masato SERIZAWA

March 25, 2019
Tweet

More Decks by Masato SERIZAWA

Other Decks in Programming

Transcript

  1. "VUIMFUF1BSUOFS.FFUVQ4QSJOH

    4NBSU)3ʹ͓͚Δ
    "VUIMFUFͷ׆༻
    .PO
    ۔ᖒխਓ
    4NBSU)3$50

    View full-size slide

  2. • גࣜձࣾ SmartHR ͰɺSmartHR ͱ͍͏αʔϏεΛ։ൃத
    • ৽ଔͰࣾձਓʹͳͬͯҎདྷɺWeb ΤϯδχΞͱͯ͠ͷΩϟϦΞΛาΉ
    • SmartHR ʹ͸αʔϏεϩʔϯν௚ޙʹδϣΠϯ
    • ͍ͪΤϯδχΞͱͯ͠։ൃۀ຿ʹܞΘΔ͔ͨΘΒɺCTO ͱͯ͠ϓϩμ
    Ϋτ։ൃɾӡ༻ʹؔΘΔνʔϜશମͷ࠷దԽ΍ϏδωεαΠυͱͷཁ
    ๬ௐ੔Λߦ͏ɻ
    ۔ᖒ խਓ @masato_serizawa

    View full-size slide

  3. 4NBSU)3ͷ͝঺հ

    ؆୯ͳ

    View full-size slide

  4. 4NBSU)3͸
    ਓࣄɾ࿑຿ͷ؅ཧ΍खଓ͖ΛΧϯλϯʹ͢Δ͜ͱͰ
    ैۀһͷੜ࢈ੑΛ্͛Δ
    Ϋϥ΢υܕιϑτ΢ΣΞͰ͢ɻ
    4NBSU)3ͱ͸
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔˔˔˔˔
    WWW

    View full-size slide

  5. ࣾอɾޏอॻྨΛ
    ࣗಈ࡞੒
    ैۀһ৘ใΛ
    σʔλϕʔεԽ
    ࡞੒ͨ͠ॻྨΛ
    8FC͔Βਃ੥
    ਓࣄ৘ใΛ
    Χϯλϯʹऩू
    4NBSU)3ͱ͸
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔

    View full-size slide

  6. ैۀһຊਓ͕ೖྗͨ͠৘ใ͔Βɺ
    खଓ͖ʹԠͨ͡ॻྨ͕ࣗಈ࡞੒͞ΕΔͷͰ
    खॻ͖ͷखؒ΍࣌ؒΛେ෯ʹ࡟ݮͰ͖·͢ɻ
    ಋೖϝϦοτ
    lϖʔύʔϨεzͰ
    खॻ͖ͱαϤφϥ
    खॻ͖͢Δͷͱൺ΂ͯ
    ୹ॖ
    ˞ೖࣾखଓ͖ॻྨΛ࡞੒ʹཁ͢Δ࣌ؒɹखॻ͖ɿ̍࣌ؒɹ4NBSU)3ɿ̏෼ʢ਺஋͸ฐࣾಠࣗௐࠪʹΑΔʣ

    View full-size slide

  7. ؅ཧऀ
    ಺ఆ͕ܾ·ͬͨʮैۀһຊਓʯʹ
    ೖࣾ࣌ʹඞཁͳ৘ใΛೖྗґཔͰ͖ΔͷͰɺ
    ࢴͰͷ৘ใऩू͸ෆཁɻೖࣾ࿈བྷථ΋ඞཁ͋Γ·ͤΜʂ
    ॻ͖࿙ΕͳͲͰੜ͡Δແବͳ΍ΓͱΓ΋ͳ͘ͳΓ·͢ɻ
    ೖࣾ࿈བྷථ΋ෆཁʹɻ
    ैۀһ͕ඞཁ৘ใΛࣗ෼Ͱೖྗʂ
    ैۀһ
    ಋೖϝϦοτ

    View full-size slide

  8. ࣾձอݥɾޏ༻อݥ࿑຿खଓ͖Λ8FC͔Βਃ੥Ͱ͖ΔͷͰɺ
    ໾ॴ΁ͷҠಈ࣌ؒ΍ަ௨අɾ༣ૹඅΛ࡟ݮͰ͖·͢ɻ
    ͞Βʹސ໰ࣾ࿑࢜͞ΜͱΞΧ΢ϯτΛڞ༗͢Ε͹ɺ
    4NBSU)3্͚ͩͰ৘ใͷ΍ΓऔΓ͕׬݁͠·͢ɻ
    εϜʔζʹ৘ใΛڞ༗Ͱ͖·͢ɻ
    ໾ॴ΁ߦ͘ͷͱൺ΂ͯ
    ୹ॖ
    8FC͔Βਃ੥Ͱ͖ΔͷͰ
    ໾ॴ΁ͷҠಈίετ΋࡟ݮ
    ಋೖϝϦοτ
    ˞ॻྨఏग़ʹཁ͢Δ࣌ؒɹ໾ॴ΁ߦ͘ɿ໿̐࣌ؒɹ4NBSU)3ɿ໿̍෼ʢ਺஋͸ฐࣾಠࣗௐࠪʹΑΔʣ

    View full-size slide

  9. ಋೖϝϦοτ
    ࣗ༝ࣗࡏʹΧελϚΠζͰ͖ΔैۀһσʔλϕʔεͰɺ
    ैۀһͷ࠷৽৘ใΛ࿙Εͳ͘ਖ਼֬ʹ؅ཧͰ͖·͢ɻ
    ॅॴมߋͳͲͷߋ৽৘ใ͸ैۀһ͕௚઀ߋ৽Ͱ͖ɺ
    ؅ཧऀ͕σʔλϕʔεΛߋ৽͢Δඞཁ͸͋Γ·ͤΜʂ
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ˔˔˔˔
    ˔˔˔˔˔˔˔˔
    ैۀһ৘ใͷҰݩԽͰ
    ୤ɾ&YDFM؅ཧ

    View full-size slide

  10. ฏ੒೥݄೔ࢧڅ෼څ༩໌ࡉ
    גࣜձࣾ˚˚
    ࠩҾࢧڅֹ
    ԁ
    څ༩໌ࡉΛ8FC্Ͱ഑෍Ͱ͖ΔͷͰɺ
    ϖʔύʔϨεԽ͸΋ͪΖΜͷ͜ͱɺ
    ສ͕Ұͷ഑෍ϛεͳͲηΩϡϦςΟϦεΫͷ๷ࢭʹ΋ʂ
    ௞ۚ୆ாͷΞοϓϩʔυͰ཭৬ථͷ࡞੒΋Ͱ͖·͢ɻ
    l8FC্Ͱ഑෍zͰ͖ΔͷͰ
    څ༩໌ࡉ΋ϖʔύʔϨεԽ
    ฏ੒೥݄೔
    ࢧڅ෼څ༩໌ࡉ
    גࣜձࣾ˚˚
    ࠩҾࢧڅ ԁ
    ΋ͪΖΜ
    εϚϗͰ΋ʂ
    ಋೖϝϦοτ

    View full-size slide

  11. ैۀһ͕ʮ͸͍ʯ
    ɾ
    ʮ͍͍͑ʯͷΧϯλϯͳ࣭໰ʹ౴͑Δ͚ͩͰ
    ਃࠂॻྨ͕׬੒͠·͢ɻ΍΍͍͜͠ॻྨΛखॻ͖͢Δඞཁ͕ͳ͘ͳΔͷͰɺ
    ؅ཧऀ͸ɺॻ͖࿙Εɾॻ͖ؒҧ͍ʹΑΔमਖ਼ίετΛେ෯ʹ࡟ݮͰ͖·͢ɻ
    σʔλ͸ϑΝΠϧͰΤΫεϙʔτ΋ՄೳͰɺ൥ࡶͳσʔλԽ࡞ۀ΋ෆཁʹʂ
    εϚϗͰαΫαΫͰ͖Δʂ
    ϖʔύʔϨε೥຤ௐ੔
    ͍͍͑
    4NBSU)3ʹొ࿥͞Ε͍ͯΔॅॴ
    ˟
    ౦ژ౎ߓ۠ຑ෍୆
    දࣔ͞Ε͍ͯΔॅॴ͸
    ॅຽථॅॴͱಉ͡Ͱ͔͢ʁ
    ͸͍
    ಋೖϝϦοτ

    View full-size slide




















  12. ݄









































    ಋೖاۀ਺ɾܧଓ཰
    ࣾҎ্͕ར༻த
    ೥݄຤

    ͷاۀ༷͕
    ܧଓར༻͍ͯ͠·͢
    ຖ݄ ࣾҎ্͕ಋೖ

    View full-size slide

  13. CONFIDENTIAL
    ࣾΛ௒͑Δاۀʹར༻͞Ε͍ͯ·͢
    ͝ར༻͍͚ͨͩΔैۀһ਺͸
    ໊d਺ສ໊ن໛·Ͱ

    View full-size slide

  14. CONFIDENCIAL
    "VUIMFUFJO4NBSU)3

    View full-size slide

  15. 4NBSU)3͸"1*Λެ։͍ͯͯ͠
    ֤αʔϏεͱͷ࿈ܞ΍֦ுΛਐΊ͍ͯ·͢
    ٻਓαΠτ
    ೖࣾखଓ͖
    "1*
    "1*
    ࣾ಺
    γεςϜ
    "1*
    440
    ࠾༻؅ཧ
    πʔϧ

    View full-size slide

  16. ޏ༻ܖ໿ػೳ

    View full-size slide

  17. ޏ༻ܖ໿
    ೥຤ௐ੔
    ैۀһ৘ใ࿈ܞ
    • ϓϥοτϑΥʔϜԽΛݟਾ͑ͯ Microservice ͷख๏Λ࠾༻
    • ֤ϓϩμΫτ͸ SmartHR ຊମͱ͸ಠཱͯ͠ଘࡏ
    • SmartHR ຊମʹ͋Δ WebAPI Λར༻ͯ͠σʔλΛૹड৴

    View full-size slide

  18. ޏ༻ܖ໿
    ೥຤ௐ੔
    ैۀһ৘ใ࿈ܞ
    • ϓϥοτϑΥʔϜԽΛݟਾ͑ͯ Microservice ͷख๏Λ࠾༻
    • ֤ϓϩμΫτ͸ SmartHR ຊମͱ͸ಠཱͯ͠ଘࡏ
    • SmartHR ຊମʹ͋Δ WebAPI Λར༻ͯ͠σʔλΛૹड৴
    ͜͜ͷೝՄʹ
    0"VUIΛ࠾༻

    View full-size slide

  19. 4NBSU)3͸4BB4$PNQBOZͰ͢
    4BB4ΤίϊϛʔͷҰһͱͯ͠ɺࢲͨͪ΋ੵۃతʹ4BB4Λ࢖͏Α͏ʹ͍ͯ͠·͢

    View full-size slide

  20. 0"VUIΛར༻͢ΔͨΊʹ
    "VUIMFUFΛಋೖʂ

    View full-size slide

  21. ࢖ͬͯΈͯΘ͔ͬͨ
    "VUIMFUFͷྑ͍ͱ͜Ζ

    View full-size slide

  22. 8FC"1*͕ͱʹ͔͘ॆ࣮͍ͯ͠Δ
    w ΍Γ͍ͨॲཧΛ໰୊ͳ࣮͘ݱͰ͖ΔΤϯυϙΠϯτͷ๛෋͞
    w ؆ܿͰѻ͍΍͍͢ΠϯλʔϑΣΠε࢓༷
    w ໌ྎͳ࢓༷ॻ

    View full-size slide

  23. ؅ཧը໘Ͱ୭Ͱ΋Ͳ͔͜ΒͰ΋ϝϯςՄೳ
    w ೝՄͷઃఆΛ8FCͷ؅ཧը໘্͔Βૢ࡞Մೳ
    w ෳࡶͳϝϯςखॱॻ΋ෆཁͰɺӡ༻ίετ͕ܰݮ

    View full-size slide

  24. ࠷৽࢓༷Λ௥ਵ͍ͯͯ͠ɺ҆৺ͯ͠ར༻Մೳ
    w ಺੡Ͱӡ༻͢Δʹ͸ෳࡶ͗͢Δ0"VUI΍0QFO*%
    $POOFDUͷػೳΛఏڙ͢Δ͚ͩͰͳ͘ɺৗʹ࠷৽࢓༷Λ௥ਵ
    w 4BB4ͳͷͰΞοϓσʔτ͕ෆཁͰͦΕΒͷԸܙΛڗडՄೳ

    View full-size slide

  25. ઒࡚͞Μͷ2JJUBهࣄ͕ΊͪΌॆ࣮ͯ͠Δ
    w ฐࣾΤϯδχΞͷਪનਤॻͱ͍͍͍ͤͯͨͩͯ͞·͢!!!
    "VUIMFUF͸௚઀ؔ܎ͳ͍Ͱ͕͢ʜ

    View full-size slide

  26. ࢖ͬͯΈͯΘ͔ͬͨ
    "VUIMFUFͷ੯͍͠ͱ͜Ζ

    View full-size slide

  27. 3VCZ$MJFOU͕͋·Γϝϯς͞Ε͍ͯͳ͍
    w Ұ෦ରԠ͍ͯ͠ͳ͍ΤϯυϙΠϯτ͕͋ͬͨΓʜ
    w 044ͳͷͰɺΈΜͳͰ੝Γ্͍͔͛ͯ͘͠ͳ͍"
    ฐࣾͷΤϯδχΞ΋

    ίϯτϦϏϡʔτͯ͠·͢ʂ

    View full-size slide

  28. ຊ࣭Λཧղ͠ͳ͍··࢖ͬͯ͠·͍͕ͪ
    w ʮͳΜͱͳ͘ɺखܰʹʯ࢖͑ͯ͠·͏ศར͞Ώ͑ɺਖ਼௚ͳͱ͜
    Ζ0"VUIͱ0QFO*%$POOFDUͷ͜ͱ͕͖ͪΜͱཧղͰ͖
    ͍ͯͳ͍··ར༻ͯ͠͠·͍ͬͯ·͢ʜ
    w ઒࡚͞ΜͷهࣄΛಡΜͰΘ͔ͬͨͭ΋ΓͰ͍ͯ΋ɺ࣮ࡍͷϢʔ
    εέʔε͕Θ͔Βͳ͔ͬͨΓ͢Δ͜ͱ΋͋Γɺ͜ͷลΓͷ৘ใ
    ަ׵͕Ͱ͖Ε͹ͳ͊ͱࢥ͍ͬͯ·͢

    View full-size slide

  29. ؅ཧը໘ʹҰ෦࢖͍ʹ͍͘ՕॴΞϦ
    w ۩ମతʹ͍͏ͱʮϦμΠϨΫτ63*ʯ
    w ৄࡉը໘ͩͱશͯݟ͍͑ͯΔ͕ɺฤूը໘ͩͱলུ͞Εͯ͠·ͬ
    ͍ͯͯɺࣝผ͕ࠔ೉ʂ

    View full-size slide

  30. ͱ͸͍͑ɺ
    ೔ʑศརʹ׆༻͓ͯ͠Γ·͢ʂ

    View full-size slide

  31. ࠓޙͷ׆༻

    View full-size slide

  32. ϓϥοτϑΥʔϜԽͷߋͳΔਪਐʂ
    w 4NBSU)3ͱͯ͠͸ɺϓϥοτϑΥʔϜߏ૝Λ࣮ݱ͍ͯ͘͠ͷ
    ΈͰ͢ʂ
    w Ώ͘Ώ͘͸SEQBSUZʹ΋ղ์ͯ͠ɺ"VUIMFUFΛ࢖ͬͨೝՄΛ
    ΍͍ͬͯͨͩͭ͘΋ΓͰ͢

    View full-size slide

  33. 0QFO*%$POOFDUͷ׆༻
    w ݱঢ়ར༻͍ͯ͠ΔՕॴʹ͍ͭͯɺ0QFO*%$POOFDUͷػೳΛ࢖ͬ
    ͨ΄͏͕εϜʔζʹ࿈ܞͰ͖Δ΋ͷ͕͋Γͦ͏Ͱ͢
    w 0QFO*%$POOFDUͷ࢖༻Λཧղͯ͠ɺ"VUIMFUFͷػೳΛे෼
    ʹ࢖͍͜ͳͤΔΑ͏ʹ͍͖͍ͯͨ͠Ͱ͢

    View full-size slide

  34. ࠓޙͱ΋ɺΑΖ͓͘͠ئ͍͍ͨ͠·͢

    View full-size slide

  35. גࣜձࣾSmartHR CTO

    ۔ᖒ խਓ
    @masato_serizawa
    ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ

    View full-size slide