简体   繁体   中英

Get access token using refresh token with native application client id

How to regenerate the access token using refresh token through C# or PowerShell using native application client id?

Having the following inputs:

$RefreshToken = "refresh_token"  
$ClientId= "client_id"  

I have found many ways to regenerate access token using refresh token, but all those are using web app client id and client secret.

As far as I know, if you use native application, we will use silent auth( grant flow ). It will just return the access token not the refresh token.

I guess you use web application code flow to get the access token and refresh token.

If you use this way, it must need the client secret and refresh token to generate the access token.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM