Wait for token device code / new Sample for Authentication #594
Labels
investigate
firther investigation needed before we cna prceed with this issue
Mgmt
Management plane SDK related issues.
I have tried to get the device code to work and have now managed a manuall way to do it and would like to have an automated way.
What i've done is to write the device message and then waiting with a readline and the returning true.
What i would like to do is to peek at the token to see if it's ready to fetch.
When i try to do this I automaticly fetch the token and then i get an error saying the token is already claimed.
Tried to refresh token as a work around but that to fetched the token directly.
Good to have for some systems but not nice when you want a smoot signin process in your application.
`
using System;
using System.Collections.Generic;
using System.Linq;
using System.Globalization;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using Microsoft.Azure.Management.Compute.Fluent;
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.Network.Fluent;
using Microsoft.Azure.Management.Network.Fluent.Models;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent.Core;
using Microsoft.Azure.Management.ResourceManager.Fluent.Authentication;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace azure_check_subnet_without_nsg
{
class Program
{
private const string TenantId = "YOUR-TENANT-HERE";
}
`
The text was updated successfully, but these errors were encountered: