Cov txheej txheem:

OAuth 2.0 tus neeg siv ID yog dab tsi?
OAuth 2.0 tus neeg siv ID yog dab tsi?

Video: OAuth 2.0 tus neeg siv ID yog dab tsi?

Video: OAuth 2.0 tus neeg siv ID yog dab tsi?
Video: Электронная почта с Python 2024, Kaum ib hlis
Anonim

Client ID . Tus neeg siv_id yog pej xeem tus cim rau apps. Txawm hais tias nws yog pej xeem, nws yog qhov zoo tshaj plaws uas nws tsis xav tau los ntawm cov neeg thib peb, yog li ntau qhov kev siv siv qee yam xws li 32-tus cim hex hlua. Nws tseem yuav tsum muaj qhov tshwj xeeb thoob plaws txhua qhov cov neeg siv khoom uas tso cai server ua haujlwm.

Ntxiv rau qhov no, tus neeg siv khoom ID hauv oauth2 yog dab tsi?

Thaum koj daim ntawv thov raug sau npe, qhov kev pabcuam yuav muab " tus neeg siv khoom daim ntawv pov thawj" nyob rau hauv daim ntawv ntawm a tus neeg siv khoom identifier thiab a tus neeg siv khoom zais cia. Cov Client ID yog ib txoj hlua nthuav tawm rau pej xeem uas siv los ntawm kev pabcuam API los txheeb xyuas daim ntawv thov, thiab tseem siv los tsim cov ntawv tso cai URLs uas tau nthuav tawm rau cov neeg siv.

Tom qab ntawd, lo lus nug yog, tus neeg siv khoom ID yog dab tsi? Koj tus neeg siv ID , tseem hu ua UCI, yog nyob ntawm txhua cov ntaub ntawv koj tau txais los ntawm peb. Nws yog tus lej yim lossis kaum tus lej uas zoo li no: 0000-0000 lossis 00-0000-0000. Yog tias koj ua ntawv thov rau peb thawj zaug, koj tseem tsis tau muaj tus neeg siv ID.

Ib yam li ntawd, kuv yuav tau txais kuv OAuth tus neeg siv ID li cas?

Thov OAuth 2.0 tus neeg siv ID hauv Google API Console

  1. Mus rau Google API Console.
  2. Xaiv ib qhov project, lossis tsim ib qho tshiab.
  3. Nyem Txuas ntxiv txhawm rau pab kom Fitness API.
  4. Nyem Mus rau daim ntawv pov thawj.
  5. Nyem Cov ntawv pov thawj tshiab, tom qab ntawd xaiv OAuth Client ID.
  6. Hauv daim ntawv thov hom xaiv Android.

Puas yog OAuth tus neeg siv ID zais cia?

Yog, Hauv cov ntaub ntawv tus tswv tus password daim ntawv pov thawj tus neeg siv id tsis tau nthuav tawm nyob qhov twg rau pej xeem tab sis nws yuav tsum yog tus yuam sij rau pej xeem hauv tag nrho OAuth ntsiab lus. Raws li ib oAuth txheem koj xav tau ob qho tib si Client ID & Client Secret nrog rau cov neeg siv cov ntaub ntawv pov thawj los tsim kom muaj tus token nkag. Nws yog tus qauv txhais los ntawm OAuth.

Pom zoo: