Cov txheej txheem:

Puas yog Basic Auth ruaj ntseg?
Puas yog Basic Auth ruaj ntseg?

Video: Puas yog Basic Auth ruaj ntseg?

Video: Puas yog Basic Auth ruaj ntseg?
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim

Feem ntau BASIC - Auth yeej tsis xav txog ruaj ntseg . BASIC - Auth ua tau caches tus username thiab password koj nkag, hauv browser. BASIC - Auth khaws tus username thiab password nyob rau hauv browser feem ntau ntev npaum li qhov kev sib tham browser tab tom ua haujlwm (tus neeg siv tuaj yeem thov kom lawv khaws cia tsis tas li).

Kuj nug, yog Basic Auth ruaj ntseg ntawm

Qhov txawv xwb uas Basic - Auth ua yog tias tus neeg siv lub npe / lo lus zais tau dhau mus rau hauv qhov kev thov headers es tsis txhob siv lub cev thov (GET / POST). Yog li ntawd, siv yooj yim - auth + https tsis muaj tsawg los yog ntau dua ruaj ntseg tshaj ib daim ntawv raws li authentication dhau . Basic Auth dhau yog qhov zoo, tab sis nws tsis muaj kev nyab xeeb kiag li.

Ib yam li ntawd, peb hom kev lees paub yog dab tsi? Feem ntau muaj peb hom kev lees paub qhov tseeb:

  • Hom 1 – Tej Yam Koj Paub – suav nrog cov passwords, PINs, kev sib txuas, cov lus cim, lossis kev sib tuav tes zais cia.
  • Hom 2 - Tej Yam Koj Muaj - suav nrog txhua yam khoom uas yog lub cev, xws li cov yuam sij, xov tooj ntse, daim npav ntse, USB drives, thiab cov khoom siv token.

Hauv qhov no, kev txheeb xyuas qhov tseeb hauv REST API yog dab tsi?

Yuav luag txhua REST API yuav tsum muaj qee yam kev lees paub . Cov txheej txheem no muaj xws li xa cov ntawv pov thawj los ntawm cov neeg siv khoom siv chaw taws teeb mus rau cov chaw taws teeb nkag mus rau hauv cov ntawv sau yooj yim lossis cov ntawv encrypted los ntawm kev siv ib qho kev lees paub raws tu qauv. Kev tso cai yog qhov tseeb tias qhov kev sib txuas tau tso cai.

Koj siv cov ntawv pov thawj yooj yim li cas?

Txhawm rau xa daim ntawv thov kev lees paub, mus rau qhov Kev Tso Cai tab hauv qab ntawm qhov chaw nyob bar:

  1. Tam sim no xaiv Basic Auth los ntawm cov ntawv qhia zaub mov.
  2. Tom qab hloov kho qhov kev xaiv qhov kev lees paub, koj yuav pom qhov kev hloov pauv hauv Headers tab, thiab tam sim no nws suav nrog thaj chaw header uas muaj cov npe siv encoded thiab lo lus zais:

Pom zoo: