Cov txheej txheem:

Kuv yuav nrhiav tau kuv tus neeg siv khoom GitHub ID thiab zais cia li cas?
Kuv yuav nrhiav tau kuv tus neeg siv khoom GitHub ID thiab zais cia li cas?

Video: Kuv yuav nrhiav tau kuv tus neeg siv khoom GitHub ID thiab zais cia li cas?

Video: Kuv yuav nrhiav tau kuv tus neeg siv khoom GitHub ID thiab zais cia li cas?
Video: Kuv Hmoov Phem Los Koj Siab Phem-LOKY(Official MV ) 2024, Hlis ntuj nqeg
Anonim

Thawj kauj ruam ntawm no yog nrhiav tus neeg siv khoom lossis daim ntawv pov thawj app (Client ID & Client Secret)

  1. Mus rau koj GitHub chaw.
  2. Xaiv Cov Ntawv Thov> Tsim cov ntawv thov tab.
  3. Xaiv ib daim ntawv thov uas twb muaj lawm lossis ntaus Sau npe rau daim ntawv thov tshiab.
  4. Teem ob peb qhov ntsuas rau koj daim ntawv thov thiab tau txais tus Client ID thiab Client Secret .

Ntxiv mus, kuv yuav ua li cas thiaj li tau txais kuv tus neeg siv khoom ID thiab zais cia?

Tau txais tus neeg siv khoom ID thiab tus neeg siv khoom zais cia

  1. Qhib nplooj ntawv Google API Console Credentials.
  2. Los ntawm qhov project drop-down, xaiv ib qhov project uas twb muaj lawm los yog tsim ib qho tshiab.
  3. Ntawm nplooj ntawv Kev Pov Thawj, xaiv Tsim cov ntawv pov thawj, tom qab ntawd xaiv OAuth tus neeg siv ID.
  4. Hauv daim ntawv thov hom, xaiv Web application.
  5. Nyem Tsim.

Tus neeg siv 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.

Yog li ntawd, dab tsi yog tus neeg siv khoom ID thiab zais cia?

Client ID thiab zais cia Tom qab sau npe koj lub app, koj yuav tau txais ib tus neeg siv ID thiab xaiv tau a tus neeg siv khoom zais cia . Cov tus neeg siv ID yog suav tias yog cov ntaub ntawv pej xeem, thiab siv los tsim tus ID nkag mus URLs, lossis suav nrog Javascript qhov chaws ntawm nplooj ntawv. Cov tus neeg siv khoom zais cia yuav tsum khaws cia tsis pub leej twg paub.

Client_id yog dab tsi?

Cov client_id yog ib tug pej xeem identifier 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 kuj tseem yuav tsum muaj qhov tshwj xeeb thoob plaws txhua tus neeg siv khoom uas tso cai server ua haujlwm.

Pom zoo: