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

認証認可

yosi
August 09, 2022

 認証認可

yosi

August 09, 2022
Tweet

More Decks by yosi

Other Decks in Programming

Transcript

  1. ೝূͱೝՄ HTTP statusͷ࿩ ೝূɹ(Authentication) • 401 Unauthorized —ɹೝূͷࣦഊ • ʮ͓·͑୭ͩΑʯ

    ݴ༿͸ࣅͯΔ͚Ͳผͷ֓೦! ೝՄɹ(Authorization) • 403 Forbidden — ೝՄͷෆ଍ • ʮཧղͨ͠ɺ͕ͩஅΔʯ
  2. ೝূͱೝՄ ͷ࿩ • ೝূʹجͮ͘ೝՄ 
 ͜Ε͕ଟ͘ͷਓ͕ߟ͑Δύλʔϯɻ 
 ྫʣӡస໔ڐॻͳͲ͕͍͍ྫɻ 
 •

    ೝՄʹجͮ͘ೝূ(!?) 
 ྫ) ͜ͷਓ͸A͞ΜͷՈͷ伴Λ࣋ͬͯΔ͔ΒɺA͞ΜͩͶ 
 →͜Εͷߟ͕͑OAuthೝূͷߟ͑ʹͭͳ͕Δɻ