https://github.com/adefwebserver/blazorsimplesurvey
Blazor Simple Survey
https://github.com/adefwebserver/blazorsimplesurvey
azure-b2c blazor blazor-server
Last synced: 11 months ago
JSON representation
Blazor Simple Survey
- Host: GitHub
- URL: https://github.com/adefwebserver/blazorsimplesurvey
- Owner: ADefWebserver
- Created: 2020-09-05T21:06:33.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T21:06:17.000Z (about 3 years ago)
- Last Synced: 2025-04-19T07:46:56.108Z (about 1 year ago)
- Topics: azure-b2c, blazor, blazor-server
- Language: C#
- Homepage:
- Size: 679 KB
- Stars: 51
- Watchers: 11
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

## Live Example:
#### [Blazor Simple Survey (https://blazorsimplesurvey.azurewebsites.net/)](https://blazorsimplesurvey.azurewebsites.net/)

## Articles:
* [Blazor Simple Survey: Creating Dynamic Surveys](https://blazorhelpwebsite.com/ViewBlogPost/44)
* [Blazor and Azure B2C: The Big Picture](https://blazorhelpwebsite.com/ViewBlogPost/42)
* [Blazor Azure B2C User And Group Management](https://blazorhelpwebsite.com/ViewBlogPost/43)
## Features
* Unlimited Surveys
* Unlimited Survey Questions
* Survey responses in pie charts
* Survey Question Types
* Text Box
* Text Area
* Date
* Date Time
* Dropdown
* Multi-Select Dropdown
* Azure B2C Integration
* View Azure B2C Authorization Claims
* Administration
* User Management
* Search and edit users in Azure B2C Tenant
* Custom designate Azure B2C group as Administration Group
* Activity Logs
## Set-Up:
### Database Set-up
* Create a Database and run scripts in **!SQL** directory
* Edit *appsettings.json* to set the database connection
### Azure B2C Setup
* Follow the directions in: [Creating A Blazor Server Azure B2C App](https://blazorhelpwebsite.com/ViewBlogPost/55) to set-up a Azure AD B2C Tenant
* Copy the settings to the appsettings.json file (AzureAdB2C section).
### Azure B2C Management Configuration
Microsoft Graph allows you to manage many of the resources within your Azure AD B2C tenant. To configure this follow these directions:
* [Register a Microsoft Graph application](https://docs.microsoft.com/en-us/azure/active-directory-b2c/microsoft-graph-get-started?tabs=app-reg-ga)
* Ensure you add these permissions to the Azure Application you create:
* AuditLog.Read.All
* Directory.ReadWrite.All
* Policy.ReadWrite.TrustFramework
* User.Read
* User.ReadWrite.All
* Copy the settings to the appsettings.json file (AzureAdB2CManagement section).
### Azure B2C *Advanced Configuration* (optional)
If you desire to allow any Azure AD tenant to log in, you need to use Custom Policies. This application can also be configured to use Azure Active Directory B2C Custom Policy files.
See an overview of this process here: [Blazor Multi-Tenant Azure B2C](https://blazorhelpwebsite.com/ViewBlogPost/42). To get started see [Get started with custom policies in Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started)
After you follow the directions, you will make a new policy in the Identity Experience Framework.
You will create a **Relying Party (RP)** file like **B2C_1A_signup_signin**.
Update the **SignUpSignInPolicyId** property in the appsettings.json file with the name of this file to use it.
You can get the sample Azure B2C Custom policy .xml files in the **!AzureB2CConfig** directory (you will need to update the custom values)
* If using **Azure Active Directory Multi-Tenant** login follow these steps: [B2C-Token-Includes-AzureAD-BearerToken](https://github.com/azure-ad-b2c/samples/tree/master/policies/B2C-Token-Includes-AzureAD-BearerToken)
* If using **Google** login follow these steps: [Set up sign-in with a Google account using custom policies in Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-google-custom?tabs=app-reg-ga)
* If using **Twitter** login follow these steps: [Set up sign-in with a Twitter account using custom policies in Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-twitter-custom?tabs=app-reg-ga)
* If using **Microsoft Accounts** for login follow these steps: [Set up sign-in with a Microsoft account using custom policies in Azure Active Directory B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-microsoft-account-custom?tabs=app-reg-ga)
### Screen Shots





