Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Refresh Token

Jeffrey Opdam edited this page Jul 2, 2017 · 2 revisions

How to get a Refresh Token for Acceptance Tests.

Add the base url for your authorize url to the hosts file in C:\Windows\System32\drivers\etc. with 127.0.0.1. We want to make sure that after you navigated to the vsts authorization page, you will not be directed to a valid url. Make sure your appsettings.config and Team-Services-Bot.runsettings are filled in completely. Use you Bot Emulator and say connect, the bot should show you the logon card, click the authorize button, this will open the vsts authorize url. Accept and you will navigate to the authorize url and the page will not load.

Now make sure you have added a breakpoint to the authorizecontroller index method. update the url in your browser with the prefix http://localhost:3979/ Get the refresh token, while debugging.

Do not forget to reset the host file.