User Authentication in Azure B2C Directory for a Wisej vb.net Desktop app

0
0

I’m looking for a code example that will initiate user authentication on an Azure server.  Can you assist?  Since most of Azures tutorials and code examples relate to ASP.net I’ve become a bit confused by the Azure process of user authentication.   My desktop app has only a couple of the same files and my coding would need to be in vb.net.

I have successfully published my vb.net desktop to an Azure server.  It works well.  I’m trying to use the B2C Directory functionality of “user flows” to have the user login to control access.  I believe I have the Azure B2C tenant properly set up.  I’ve been discussing this with Azure support but the tech doesn’t seem to understand Wisej and is not well versed in vb.net.

He found a link that might enable my app to initiate the login process: https://gist.github.com/byrnedo/d8ca5611f89145ab26b6dfce4826d693  If this is on the right track in your opinion that’s great but it occured to me that this process may have been covered by you elsewhere.  Do you have a better resource?

Assuming I can authenticate the user in Azure, a second question is about authentication/authorization within the app itself.  My understanding is that in an asp.net app the web.config can dictate access to various pages and directories.  Is this true for my desktop app as well?

Thanks for your advice!

Gerry

 

 

 

  • You must to post comments
0
0

Thanks for your explanation!  The Wisej.OpenAuth project shows the solution.  I just need to create the parameter string to connect properly.  Forgive my lack of knowledge on this but I assume the connection is based on the authentication and if the authentication is lost the app will redirect?  Perhaps a noob question and I see no reason for authentication to be lost under normal conditions, I’m just curious.

Once the web app is running I can filter user access using the same database user settings as in my desktop.

Thanks again!

Gerry

  • Luca (ITG)
    There is no connection between the authentication and the app. OAuth simply stores a cookie. Wisej doesn’t know anything about the authentication – it’s your code that authenticates or validates, Wisej works with plain HTTP (each request – i.e. a click – is a new connection) or WebSocket (the connection is held open, and automatically re-established on a refresh or temporary loss).
  • You must to post comments
0
0

By “Wisej Desktop App” you mean a Wisej app running in a standalone container using the self hosting extensions?

Wisej apps are always web apps, even when running in the self hosted standalone container: it’s identical to electron (which is also what Visual Studio code is, a web app running in chrome).

Wisej doesn’t have any specific custom authentication – it works with any authentication you choose to use. There is no navigation to URLs and pages since it’s a Single Page Application (SPA), so there is one entry point, which is by far more secure than having a URL for every state of the app.

See: https://wisej.com/support/question/single-sign-on

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.