Greetings, and thank you in advance for the help!
I'm writing an app to enable users to leverage the World Routing service using Oauth2 for the authentication process. I can get through the auth process, but see the '499 Token Required' error afterwards. I see this error until I provide data and generate a route. After that, things work nicely. This seems to be a separate issue though.
My issue in question is this: I want to be able to validate the username and password specified before providing data and attempting to generate a route. I've noticed that, after I provide data and attempt to generate a route with invalid credentials (using IdentityManager.GenerateCredentialAsync), my callback method has an exception whose message is this, "Unable to generate token.\r\nInvalid username or password". This is exactly what I'm looking for! However, is there a way to validate credentials and get this message before attempting to generate route, possibly during the auth process (and perhaps before going thhrough token steps)?
In a perfect world, I'd be able to provide the username\password, and receive a response indicating whether or not the credentials are valid without having to try and generate a route first.
Thank you again for the assistance!