Get User groups using ASP.NET Blazor

Hi Everyone,

I am quite new to the community and Okta itself. In the past weeks I am struggling to understand what should be done so my Blazor Server app would be able to understand in which group user is assigned to.

I have found a very handy project in GitHub by Laura Rodriguez: GitHub - okta/samples-blazor: samples-blazor
However, this sample do not contain code which would guide me in that direction.

The ultimate goal is to create role based authentication, where user has to be in specific group to have certain access, and Website would control what user can do when they are in those groups.

Regards,
Aurimas