auth0 / Auth0.WinformsWPF

Auth0 auth client for Winforms and WPF
MIT License
6 stars 14 forks source link

Auth with username and password #14

Closed vmartynets closed 8 years ago

vmartynets commented 8 years ago

When using authentication with connection, username and password

var user = await auth0.LoginAsync(
    "my-db-connection",     // connection name here
    "username",
    "password");

it rises HttpRequestException with additional info Response status code does not indicate success: 401 (Unauthorized). My app:

image

When im using samples provided here, got UriFormatException with Invalid URI: The hostname could not be parsed.:

image

Different additional info on WPF sample project:

image

jerriep commented 8 years ago

@Amialc I also just tested this and the first time I got the HTTP Status Code 400 like you did it.

Then I tried to debug it and all of a sudden I am not getting this anymore. Seems like it is an intermittent error perhaps on the Auth0 server side. Can you please test this again and let me know whether you are getting the same error?

jerriep commented 8 years ago

The 401 Unauthorized you will get when the username / password combination does not exist on the connection you are specifying.

jerriep commented 8 years ago

@Amialc I am closing this for now. If you can reproduce the HTTP 400 please reopen

vmartynets commented 8 years ago

@jerriep i can't reproduce HTTP 400 error for now, but I'm get 401 Unauthorized even when i'm using correct username/password. Tested with twitter and facebook connections. I have modified sample to print username:password and i'm sure it is correct.

image

vmartynets commented 8 years ago

@jerriep issue still here. When i'm trying to login using twitter or facebook i'm get 401 Unauthorized and this: image