Skip to content

Latest commit

 

History

History

c5-RoleBasedAccessPart2

Accessing endpoints with role-based access in the client application

This example is part of a recipe from the book published by Packt:

.NET MAUI Cookbook: Build a full-featured app swiftly with MVVM, CRUD, AI, authentication, real-time updates, and more

In the book, this recipe covers:

  • Accessing protected endpoints from your client .NET MAUI application.
  • Deserializing data received from the server.
  • Disabling UI actions based on user permissions.

Note: This example may not include all the points mentioned above. For complete details, please refer to the corresponding recipe in the book.

Running the Example

Activate a Dev Tunnel, then start the server and client projects as described at Building a client application connected to the authentication service.

To log in with user permissions, use the following credentials:

Username: [email protected]
Password: 123Password123!

To log in as an admin, use these credentials:

Username: [email protected]
Password: 123Password123!

Output

Role-based Client