Share via

Blazor Server Program Routing

Michael Goyette 1 Reputation point
2020-11-16T17:17:33.7+00:00

I have two Blazor server programs:

  1. Login Program - Working perfectly - I get the users email, password and PIN, validate them and then write to an SQL Server table their user login information, including a GUID to uniquely identify them. I then display a list of modules in my accounting system - General Ledger for example that they can use based on our security system which can identify which
    modules, forms and controls they can use and what they are allowed to do - Add, Change, Delete, View, etc..
  2. General Ledger program - is in a folder directly below the Login program - i.e. Login/GeneralLedger. I would like to be able to do two things when they click on the General Ledger link in the Login Program:
    1. Start the General Ledger programs main Index page
    2. Pass in the GUID from the Login program so that I can read their login information and get the security system records for that particular module.

I have put the Accounting System in modules so that it can developed piece by piece and not have one big massive solution. I would like to not use Cookies, and if it is possible, pass that GUID between programs.
then I will be able to everything I need to do with the Accounting System. This accounting system is being upgraded from a two tier MS Access based system to SQL Server with Blazor. With Access I could just keep a table on the local machine with the current User ID and then retrieve that and get the security records.

I have been searching pretty extensively for answers to these two questions, and not come up with any solid answers yet.
I would greatly appreciate someone pointing my in a good direction.

Thanks for your help!

Michael

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,336 Reputation points Microsoft Employee Moderator
    2020-11-18T20:41:37.987+00:00

    Hi @Michael Goyette ,

    https://channel9.msdn.com/Events/Build/2020/BOD104/player is a video from //build 2020 that uses Blazor for modern web ui development. The architecture is client, server, shared DAL; similar to what you're doing.

    The client utilizes offline storage which I believe you're wanting to achieve with your MS Access migration, allowing the client to keep certain retrieved data. The code repo can be found over at https://github.com/SteveSandersonMS/CarChecker.

    Regards,
    Ryan

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.