{"id":35559,"date":"2019-03-05T06:00:07","date_gmt":"2019-03-05T13:00:07","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/premier-developer\/?p=35559"},"modified":"2019-03-05T11:08:44","modified_gmt":"2019-03-05T18:08:44","slug":"azure-bots-getting-extra-access-tokens","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/azure-bots-getting-extra-access-tokens\/","title":{"rendered":"Azure BOTs \u2013 getting extra access tokens"},"content":{"rendered":"<p><span style=\"font-family: 'Segoe UI',sans-serif; color: #333333; background: white;\">In this post, Premier Dev Consultant Marius Rochon show us how to obtain extra access tokens using OAuth2 Extension flow (on-behalf-of flow).<\/span><\/p>\n<div align=\"center\">\n<hr align=\"center\" noshade=\"noshade\" size=\"0\" width=\"100%\" \/>\n<\/div>\n<p><span style=\"font-family: 'Segoe UI',sans-serif; color: #111111; background: white;\">The following describes an approach for getting access tokens to more than one resource, without re-displaying the sign in dialog (using the V2 Azure AD endpoint). In a nutshell, the procedure uses the existing authentication dialog to acquire one token and then the <\/span><span style=\"font-family: 'Segoe UI',sans-serif; color: #52595e;\"><a href=\"https:\/\/tools.ietf.org\/html\/rfc6749#section-4.5\">OAuth2 Extension flow<\/a><span style=\"font-family: 'Segoe UI',sans-serif; color: #111111; background: white;\"> (on-behalf-of flow) to acquire additional access tokens with the originally acquired token.<\/span><\/span><\/p>\n<p><span style=\"font-family: 'Segoe UI',sans-serif; color: #52595e;\"><a href=\"https:\/\/mrochon.azurewebsites.net\/2019\/01\/10\/azure-bots-getting-extra-access-tokens\/\">Continue reading&#8230;<\/a><\/span><\/p>\n<p><span style=\"font-size: 12.0pt; font-family: 'Segoe UI',sans-serif; color: #333333; background: white;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, Premier Dev Consultant Marius Rochon show us how to obtain extra access tokens using OAuth2 Extension flow (on-behalf-of flow). The following describes an approach for getting access tokens to more than one resource, without re-displaying the sign in dialog (using the V2 Azure AD endpoint). In a nutshell, the procedure uses the [&hellip;]<\/p>\n","protected":false},"author":582,"featured_media":35561,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25,1],"tags":[69,56,289,3],"class_list":["post-35559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-permierdev","tag-azure-ad","tag-bots","tag-oauth2","tag-team"],"acf":[],"blog_post_summary":"<p>In this post, Premier Dev Consultant Marius Rochon show us how to obtain extra access tokens using OAuth2 Extension flow (on-behalf-of flow). The following describes an approach for getting access tokens to more than one resource, without re-displaying the sign in dialog (using the V2 Azure AD endpoint). In a nutshell, the procedure uses the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/35559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=35559"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/35559\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/35561"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=35559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=35559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=35559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}