Cov txheej txheem:

HTTP header authentication yog dab tsi?
HTTP header authentication yog dab tsi?

Video: HTTP header authentication yog dab tsi?

Video: HTTP header authentication yog dab tsi?
Video: Retrofit Tutorial — Token Authentication 2024, Hlis ntuj nqeg
Anonim

Cov HTTP Kev tso cai thov header muaj cov cov ntaub ntawv pov thawj rau pov thawj tus neeg sawv cev siv nrog tus neeg rau zaub mov, feem ntau, tab sis tsis tas, tom qab tus neeg rau zaub mov tau teb nrog 401 tsis tso cai thiab WWW- Authenticate header.

Ib yam li ntawd, tib neeg nug, Kuv yuav teeb tsa qhov tseeb qhov tseeb hauv HTTP header 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:

Ib tug kuj yuav nug, dab tsi yog daim ntawv tso cai header? Tso cai Header HTTP Thov Lub taub hau muaj cov ntaub ntawv pov thawj los txheeb xyuas tus neeg siv-tus neeg sawv cev nrog lub server, feem ntau tom qab tus neeg rau zaub mov tau teb nrog HTTP 401 Tsis tau tso cai thiab WWW-Authenticate HTTP Teb Lub taub hau.

Hauv qhov no, HTTP authentication txhais li cas?

Kev lees paub yog tus txheej txheem ntawm kev txheeb xyuas seb tus neeg siv khoom yog tsim nyog tau txais kev pab. Cov HTTP raws tu qauv txhawb kev lees paub as a txhais tau tias ntawm kev sib tham txog kev nkag mus rau qhov chaw ruaj ntseg. HTTP server applications ua tau tsis lees paub qhov kev thov tsis qhia npe thaum qhia tias authentication yog xav tau.

Peb hom authentication 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.

Pom zoo: