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

アルプの 認証/認可分離戦略と手法

アルプの 認証/認可分離戦略と手法

machu

May 19, 2022
Tweet

More Decks by machu

Other Decks in Technology

Transcript

  1. Presenter Controller Adapter (DB, Redis, etc..) UseCase Domain ߲໨ͷϚεΩϯά ΤϯυϙΠϯτͷ࣮ߦՄ൱

    ϦιʔεͷϑΟϧλ ಡऔ/ॻࠐͷ࣮ߦՄ൱ UseCaseͷ࣮ߦՄ൱ υϝΠϯϩδοΫͷ෼ذ υϝΠϯϩδοΫͷ࣮ߦՄ൱ ಛʹೝՄ͸ີ݁߹͠΍͍͢ ҎԼ͸ฐࣾͷίϯςΩετʹ͓͚ΔΞʔΩςΫνϟͷ֊૚ਤͰ͕͢ɺ֤૚Ͱ༷ʑͳೝՄͷཁ݅ ͕ߟ͑ΒΕ·͢ɻ ؔ৺͕֤ॴʹݱΕΔͨΊɺ۪௚ʹ࣮૷͢Δͱมߋ͕೉͍͠ঢ়ଶʹͳΓ΍͍͢ɻ ͜ΕΒΛผʑͷ࢓૊ΈͰ࣮૷͢Δͱख਺͕ଟ͘ͳΓ͗͢ɺ੔߹ੑͷ֬อ΋೉͘͠ͳΔͰ͠ΐ͏ɻ
  2. ෼཭ɾ෼཭ɾ෼཭ ೝূ/ೝՄ ίΞυϝΠϯ > ڥք͚ͮΒΕͨίϯςΩετͱͯ͠෼཭͢Δ͜ͱͰɺೝՄ͸ೝՄͷσʔλͱͯ͠؅ཧ͠ ΍͘͢ͳΓɺ൑ఆϩδοΫ΋ೝՄίϯςΩετ಺ʹΧϓηϧԽ͢Δ͜ͱ͕Ͱ͖Δ > ͜ΕʹΑΓɺෳࡶੑ͔ΒίΞυϝΠϯΛ੾Γ཭͢͜ͱ͕Ͱ͖ɺอकੑͷߴ͍ঢ়ଶ͕อͪ ΍͘͢ͳΔ 


    > ෼཭ʹ΋άϥσʔγϣϯ͕͋ΔͷͰɺଈίϯςΩετ෼ׂʹ૸Βͳͯ͘΋ྑ͍͕ɺͦ͏ ͢Δ͜ͱ͕Ͱ͖Δঢ়ଶ͸อ͓͍ͬͯͨํ͕ྑ͍ > Ұ൪ॏཁͳͷ͸ͲΜͳखஈʹͤΑɺίΞυϝΠϯ͔Βೝূ/ೝՄ͕੾Γ཭͞Ε͍ͯΔ͜ͱ ܾࡁ
  3. มಈੑʹΑΔ෼཭ ’มಈੑ’ ʹ͍ͭͯ͸ɺॻ੶ Righting Software Ͱ஌ Γ·ͨ͠ɻ(ݩʑ͜ͷݴ༿Λ஌Βͳ͔ͬͨͷͰ͢ ͕ɺ͜ΕΛ࢖͏ͱઆ໌͠΍͔ͬͨ͢ͷͰѪ༻ͯ͠ ͍·͢) ʮγεςϜશମʹ೾ٴ͢Δ༷ͳมߋ͞ΕΔՄೳੑ

    ͕͋ΔྖҬΛ໌Β͔ʹ͠ɺͦͷ෦෼ΛαʔϏε΍ γεςϜͷ෦඼ͱͯ͠ΧϓηϧԽ͢Δʯ ͜Εʹै͏ͱɺ࠶ར༻ੑ&อकੑ͕ߴ͘ɺෳࡶ౓ Λίϯτϩʔϧ͠΍͍͢෼཭͕Ͱ͖·͢ɻ