Git Product home page Git Product logo

icenet.shared's Introduction

IceNet.Shared

The solution contains Maui hybrid and Blazor Server apps, each equipped with user authorization functionalities. Additionally, it includes a shared Razor component library that encompasses layouts, pages, and components.

Description

The aim of this solution is to maximize code reuse across both applications by utilizing layouts, pages, and components. Efforts have been made to keep the Maui Blazor app and the Blazor Server app as "thin" as possible by consolidating shared code in the Razor component library. Since Maui Blazor operates on both Desktop and Mobile platforms, while Blazor Server operates within a browser, there were challenges in implementing a shared login page that could authenticate users from either Desktop/Mobile or a Web Browser. To address this, the AuthenticationStateProvider is utilized for authorizing users in Maui (Desktop and Mobile), while web users are authenticated with cookies. Additionally, to persist user authorization in Desktop/Mobile, user information has been stored in the Preference storage on the devices.

Getting started

Log in with the following hardcoded email: "[email protected]" and any password. Note, only user authorization has been added and not user authentication.

Features

  • User authorization (Login/Logout)
  • Show user email
  • Toggle Darkmode

icenet.shared's People

Contributors

icehub82 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sigeer2222

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.