Ejemplo n.º 1
0
        static TokenResponse WindowsAuthFlow()
        {
            Console.WriteLine("Windows Authentiation flow");
            var client = new AdvIdentityClient
            {
                Issuer       = "https://vmapxba9.advent.com:5001",
                ClientId     = "ro.APXAPIClient",
                ClientSecret = "advs",
                Scope        = "apxapi offline_access"
            };

            var result = client.Login();

            return(result);
        }
Ejemplo n.º 2
0
        static TokenResponse PasswordFlow()
        {
            Console.WriteLine("Resource Owner Passord flow");
            var client = new AdvIdentityClient
            {
                Issuer       = "https://vmapxba9.advent.com:5001",
                ClientId     = "ro.APXAPIClient",
                ClientSecret = "advs",
                Scope        = "apxapi offline_access"
            };

            var result = client.Login("pm", "advs");

            return(result);
        }