Dab tsi yog token hauv android studio?
Dab tsi yog token hauv android studio?

Video: Dab tsi yog token hauv android studio?

Video: Dab tsi yog token hauv android studio?
Video: Dab ntawm qhov chaw hlawv neeg tuag 5/29/2021 2024, Kaum ib hlis
Anonim

Txhawm rau kom nkag mus rau qhov kev pabcuam hauv online kom ruaj ntseg, cov neeg siv yuav tsum tau lees paub qhov kev pabcuam-lawv yuav tsum muab pov thawj ntawm lawv tus kheej. OAuth2 muab ib tus nqi, hu ua auth token , uas sawv cev rau tus neeg siv tus kheej thiab daim ntawv thov kev tso cai los ua tus neeg siv sawv cev.

Tom qab ntawd, OAuth Android yog dab tsi?

OAuth yog tus qauv qhib rau kev tso cai. Nws tso cai rau cov chaw muab kev pabcuam sib qhia cov ntaub ntawv nrog cov ntawv thov thib peb yam tsis muaj kev cuam tshuam cov ntaub ntawv pov thawj ntawm tus neeg siv. Hauv lwm lo lus, siv OAuth , cov kev pabcuam raws li Twitter lossis Facebook tuaj yeem muab cov apps nkag mus rau lawv cov ntaub ntawv hauv txoj kev nyab xeeb.

Tom qab, lo lus nug yog, yuav ua li cas token generated? Qhov tseem ceeb tshaj plaws, cov cim yog machine- tsim tawm . Tus neeg siv tuaj txog ntawm lub hom phiaj. Lawv nkag mus rau lawv cov ntawv pov thawj nkag. Tus neeg rau zaub mov txheeb xyuas qhov sib tw thiab cia lawv nkag mus.

Xav txog qhov no, qhov twg nkag tokens khaws cia?

3 Teb. Tus neeg siv khoom, hauv OAuth terminology, yog cov khoom siv uas ua rau kev thov rau cov neeg siv khoom siv, hauv koj rooj plaub, tus neeg siv khoom yog tus neeg rau zaub mov ntawm daim ntawv thov web (tsis yog browser). Yog li ntawd, lub nkag mus token yuav tsum muab khaws cia rau ntawm lub web application server nkaus xwb.

Koj txhais li cas los ntawm token?

Feem ntau, a token yog ib yam khoom uas sawv cev rau lwm yam, xws li lwm yam khoom (txawm lub cev los yog virtual), los yog lub tswv yim paub daws teeb meem xws li, piv txwv li, khoom plig yog qee zaum hu ua ib qho khoom plig. token ntawm tus muab kev hwm rau tus neeg txais. Hauv computers, muaj yog ntau hom cov cim.

Pom zoo: