Home > Back-end >  Useful Delphi study sina OAuth2.0 certification?
Useful Delphi study sina OAuth2.0 certification?

Time:10-28

Sina OAuth1.0 verification can't use now! Sina provide SDK 1.0

Ever study 2.0!

Now there are two problems

1, and then return to the http://YOUR_REGISTERED_REDIRECT_URI/? URL submission Code=XXXX

How to get the URL in the XXXX

2, in exchange for the Access Token
https://api.weibo.com/oauth2/access_token? Client_id=YOUR_CLIENT_ID & amp; Client_secret=YOUR_CLIENT_SECRET & amp; Grant_type=authorization_code & amp; Redirect_uri=YOUR_REGISTERED_REDIRECT_URI & amp; Code=code

(client_id=YOUR_CLIENT_ID & amp; Client_secret=YOUR_CLIENT_SECRET can use the basic way to join the header)

How to use the basic way to join the header????

CodePudding user response:

To solve the share

CodePudding user response:

No one seems interested

CodePudding user response:

2.0 1.0 is one of my development, I will, just busy recently, no mind to do,
I 'm Sorry,,

CodePudding user response:

reference 3 floor response:
1.0 is one of my development, 2.0 I will just busy recently, no mind to do,
I 'm Sorry,,


Can you say first verify part is how to through? The most the place to start is stuck! Depressed ah

CodePudding user response:

No one yet? It seems to no one will be will be turned off

CodePudding user response:

Code=the value available through word pos, and then the interception string.

How to use the basic way to join the header????
Don't understand, should also spell character, and then through the socket don't submit is ok??

CodePudding user response:

1. The default is between server validation, the callback URL is you want to set up a server, access code from the access URL
If there is no server, with the client authentication, jump to a default page callback, used this, should can be extracted from the page access_token

2. Use the basic way to join the header, which is written to the parameter in the HTTP request header section, such as
GET/oauth2/the authorize
The content-type: application/x - WWW - form - urlencoded
Host: api.weibo.com
Accept: text/HTML and application/XHTML + XML, application/XML. Q=0.9 */*; Q=0.8
The Accept - Encoding: gzip, deflate, identity
Client_id: XXXXXX
Client_secret: yyyyy

The benefits of this approach from catching the client_secret in the URL, the client authorization in this if possible, otherwise the client_secret is clear in the URL request, is very unsafe

CodePudding user response:

This two days I also in the study, also don't understand, and send messages to the landlord, add my qq,

CodePudding user response:

refer to 7th floor ZyxIp response:
code=the value available through word pos, and then the interception string.

How to use the basic way to join the header????
Don't understand, should also spell character, and then through the socket don't submit is ok??


This CODE is to access the URL redirect URL, after me how to get it in INDY10?

CodePudding user response:

references 9 f merkey2002 response:
this two days I also in the study, also don't understand, and send messages to the landlord, add my qq,


No other language versions of a lot out of him! Delphi's yet! , alas, when someone is a good translation

Third floor will also don't have enough time to make! Is really of!!!!!

CodePudding user response:

refer to the eighth floor ysai response:
1. The default is the server validation, the callback URL is you want to set up a server, access code from the access URL
If there is no server, with the client authentication, jump to a default page callback, used this, should can be extracted from the page access_token

2. Use the basic way to join the header, which is written to the parameter in the HTTP request header section, such as
GET/oauth2/the authorize
The content-type: appli...


Research for a long time ~ still didn't understand, can give period of demo code?

CodePudding user response:

  • Related