We are an existing Auth0 customer. We use Auth0 to authenticate on our Web Application with AAD, SAML, Google and Microsoft. Once authenticated, the browser has the JWT. Our Web Application passes the JWT in the authorize header for every Web API.
We want to be able to use our Web API from PowerShell, C# Console App or similar without needing a Web Browser or JavaScript. In order to use the API, one must authenticate.
Rather than coding an API key, we would like some kind of prompt for username/password. Not in a web browser but rather similar to calling the “Login-AzureRMAccount” when managing Azure from PowerShell.
It would prompt for username and password. Auth0 would perform the “authentication dance” with whichever provider (AAD, Google, Microsoft, etc.) and give us back the token once authentication succeeds. Just like it does through JavaScript and the Web Browser.
While Auth0 has a managed username/password system, we wish to use AAD, Google, Microsoft, Facebook, etc. Any of the providers we use for authentication the Web Application.
We do not want to involve a web browser or GUI at all. Purely REST calls.
I’ve looked through the documentation and examples but haven’t found what I’m looking for. I found the example in doing it for a Universal app or WPF. But both of these seem to use an existing Auth0 NuGet package that has the UI backed in. My guess is that the UI wraps a web browser, which is not what we’re after.
Is this possible and, if so, are there any samples available?
Many thanks
- Shaun