xamarin-azure-businessreview | Demo app showing how to use several Azure services | Azure library
kandi X-RAY | xamarin-azure-businessreview Summary
kandi X-RAY | xamarin-azure-businessreview Summary
Demo app showing how to use several Azure services with Xamarin including Azure AD B2C, Azure Cosmos DB, Azure Functions, Azure App Services, and Azure Media Services
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xamarin-azure-businessreview
xamarin-azure-businessreview Key Features
xamarin-azure-businessreview Examples and Code Snippets
Community Discussions
Trending Discussions on xamarin-azure-businessreview
QUESTION
I'm at the end of my first Xamarin Forms app (Whoop!), and at the stage where I'm learning about authentication and linking it to Azure.
I've downloaded the best example I can find, here: link to Xamarin Azure Sample
I plan to go through the IdentityService.cs file and work out how it works.
Unfortunately there has been a recent depreciation as explained here: msal net 2 released
I have changed as much as I can understand but still have two errors:
...ANSWER
Answered 2018-Nov-04 at 23:27To answer your question, I think that you are missing an await
in front of msaClient.GetAccountsAsync()
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xamarin-azure-businessreview
Clone this repository.
Open the /src/Reviewer.sln in either Visual Studio or Visual Studio for Mac.
Restore all NuGet packages.
In order to run this full sample, an Azure subscription is required. You can create a free subscription here. Note: When creating the Azure offerings below - use the same Resource Group. And when given the option to pick a Storage Account - pick the same one for each.
Create an Azure Storage Account.
First you need to create the tenant.
Next you need to create your application. Within the application, create a scope, and name it rvw_all.
Next you need to add any identity providers.
Then you need to create a sign-up/sign-in policy.
Create an Azure Cosmos DB - SQL API - instance. Create a database named: BuildReviewer
Create a collection named: Businesses
Create a collection named: Reviews
Create the Azure App Service.
Configure the Reviewer.WebAPI project's appsettings.json file to match the following: "AzureAdB2C": { "Instance": "https://login.microsoftonline.com/tfp/", "ClientId": "", "Domain": "", "SignUpSignInPolicyId": "", "AllAccessScope": "rvw_all" } The ClientId value will be the Application ID of your Azure AD B2C application. The Domain will be the Domain Name of your Azure AD B2C tenant. The SignUpSignInPolicyId will be the name of the sign-up/sign-in policy you created.
Update the following variable values in Reviewer.Services.APIKeys: CosmosEndpointUrl: Obtained from the API Keys blade of the portal for Cosmos DB. CosmosAuthKey: The primary key from the API Keys blade of the portal for Cosmos DB. WebAPIUrl: The URL of this Azure app service, can be obtained from the overview blade in the portal. (Make sure to include the trailing backslash.)
Deploy the Reviewer.WebAPI ASP.NET Core Web API application to the Azure App Service instance.
Create an Azure Media Services instance.
Use the same Azure Storage account as created above.
Start the default streaming endpoint.
Create an Azure AD application for it.
Create an Azure AD service principal.
Create an Azure Function App.
Use the same Azure Storage account as created above.
Create the following Application Settings keys with values: AMSAADTenantDomain: The Azure AD domain you created for the AMS app in step 4 in the Azure Media Services setup above. AMSClientId: The Azure AD client ID for the Azure Media Services application you created during the Azure Media Services setup above. AMSClientSecret: The secret key obtained during the Azure Media Services AD creation steps above. AMSRESTAPIEndpoint: Obtained on the Azure Media Services overview blade in the portal. MediaServicesStorageAccountKey: Obtained on the Primary Storage ID of the AMS Properties blade. MediaServicesStorageAccountName: Obtained on the Primary Storage Name of the AMS Properties blade. Reviews_Cosmos: The Azure Cosmos DB connection string (obtained on the keys blade for Cosmos DB). WebhookEndpoint: This will need to be obtained after you deploy the Function app. It is the URL of the AMSWebhook function.
In the Reviewer.Services.APIKeys class fill in the values for the following variables: SASRetrievalUrl: The function URL of the SASRetrievalURL function. WriteToQueueUrl: The function URL of the WritePhotoInfoToQueue function. StorageAccountName: Within the Azure Storage service - the Storage Account Name as found on Access Keys blade. PhotosContainerName: review-photos
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page