develop-mobile-apps-with-csharp-and-azure | The Book Contents - Develop Mobile Apps with C # and Azure | Form library
kandi X-RAY | develop-mobile-apps-with-csharp-and-azure Summary
kandi X-RAY | develop-mobile-apps-with-csharp-and-azure Summary
The Book Contents - Develop Mobile Apps with C# and Azure
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 develop-mobile-apps-with-csharp-and-azure
develop-mobile-apps-with-csharp-and-azure Key Features
develop-mobile-apps-with-csharp-and-azure Examples and Code Snippets
Community Discussions
Trending Discussions on develop-mobile-apps-with-csharp-and-azure
QUESTION
I have Visual Studio for Mac and I'm trying to learn Xamarin with Azure using the following tutorial: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter3/server/
At some point, I have to enable EF migrations. The tutorial says: Go to View -> Other Windows -> Package Manager Console.
Unfortunately there is no Package Manager Console in Visual Studio for Mac... so how do you handle things like enable-migrations
, add-migration
or update-database
on the Mac?
ANSWER
Answered 2019-Jan-28 at 18:07This is not currently supported with Visual Studio for Mac.
There is a NuGet extensions addin that adds a PowerShell console to Visual Studio for Mac however the Entity Framework PowerShell commands are unlikely to work since they are typically Visual Studio specific. Also the PowerShell support is limited since it uses Pash, an open source clone of PowerShell, which is not fully implemented.
If you are using Entity Framework 7 (or what they are calling Entity Framework Core) then you should be able to use the commands with the .NET Core command line.
QUESTION
I'm creating a Xamarin.forms mobile app with Azure. I have enabled Authentication/Authorization in Azure to protect the APIs in Backend.
What I need is that to ask user to login with Facebook or Google and get some information of the user such as name, email and... and then save this data in a table as user information. I like to ask user just once for login and get the data and I don't need to keep the token provided by Facebook for example and refresh it always (which I red refreshing is not supported by Facebook), but also need to keep the user logged in and has access securely to Backend APIs. I am new in this and completely confused of using Azure AD, facebook and...
What is the best way to do that? I have followed this tutorial and now am able to login with Facebook.
...ANSWER
Answered 2019-Mar-06 at 13:27Maybe what you are looking for is Azure AD B2C (Business to Customer), which will provide facilities to allow your customers to create an account for your app, but also login with Facebook (see here) or Google (see here).
Since Azure AD B2C implements OAuth2, integrating it in a Xamarin.Forms app by means of Xamarin.Auth should be possible (see here). Once you have acquired the OAuth2 token, you can include the token in the headers of your HTTP requests in the Authorization
header with the Bearer
type (see here)
QUESTION
I am trying to force a logout from an azure server. If you click to logout and then click login, you're not prompted for your username/password it just logs you straight back in.
I am writing a UWP application that connects to an Azure Webserver. If it is relevant you can see that when you Logout it removes the reference from the Windows Credential Manager and restores it as soon as you click you Login.
My questions is essentially, what else do I need to remove to stop the app retrieving the previous credentials instead of prompting so a new user can sign in?
...ANSWER
Answered 2018-Sep-12 at 08:05As is often the case forming the question on SO has led me to answer my own question.
The login screen it gives you includes a webview that saves cookies. Forcing these to be cleared has solved my problem. I have also cleared the token cache although I don't think this actually solves the problem in all cases on its own.
If I call this function before I invalidate the backend token then it works as intended and when clicking to login I am prompted for my username and password.
QUESTION
We are currently writing a Xamarin Forms Azure Mobile application, using client flow, AAD authentication, refresh tokens etc. Most of this is working as expected. However, logging out of the application does not work properly. It completes the logout process for both Android and iOS - but upon redirection to the login screen, hitting sign in will never prompt the user with the Microsoft login as expected, it will sign them straight back into the app.
To add a little bit of background, this app has been implemented as per Adrian Hall's book,
current link: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/
with the above described options and configurations.
I have also read through the 30 days of Zumo (also by Adrian Hall) blog on this, and every single post I can find on here relating to this.
My current logout code is as follows:
...ANSWER
Answered 2018-Feb-22 at 01:47We are currently writing a Xamarin Forms Azure Mobile application, using client flow, AAD authentication, refresh tokens etc. Most of this is working as expected. However, logging out of the application does not work properly.
I assumed that if you use the server flow for logging with AAD, the logout processing may works as expected. As you described that you used client flow, since you have clear the client cache for token, I assumed that the issue may caused by the LoginAsync related (ADAL part) logic code, you need to check your code, or you could provide the logging related code for us to narrow this issue.
QUESTION
I've gone through instructions In this documentation To implement offline sync on my Xamarin.Forms client But when I pull data using sync table, I don't get the data presently in the cloud, Instead when I Read data using the normal table, I actually receive data normally, I don't understand, Here is my code to get data Using SYncTable :
...ANSWER
Answered 2018-Apr-26 at 03:01AFAIK, the Incremental Sync request would look like this:
QUESTION
I have schema as below and I would like to know if I can get all the TaskCategoryMappings by CategoryId when I have to pulll all data. I went through the documentation here but I cant figure out how to do it ? All the examples are like this one based on UserId. but userid is used for also authentication and on the server side I already handle it fine to return only mappings belong to relevant user and i want in adition to filter by CategoryId?
another SO sample is here also using userId Parameter Passing with Azure Get Service
...ANSWER
Answered 2018-Mar-07 at 03:53According to your description, I checked this issue on my side and found that it could work as expected, you could follow the details below to check your code:
Backend models:
QUESTION
I am playing around with Xamarin.Forms (mvvm) with Prism and have noticed that some tutorials show navigating to another Page while others show navigating to a View.
At a high level, I understand the literal difference... however I do not understand when I should use one over the other? I have an inclination that some of the reasoning is around dependencies, for example:
A Page has the instance of User
> navigate to a view = User
is still present when the back
operation is used... meanwhile if you want this same behavior in navigating to
and from
a page, you'll need to pass the instance around via parameters... Is this correct/the reasoning behind navigating to and from views
instead of pages
?
ANSWER
Answered 2018-Mar-04 at 11:20Technically, in pure MVVM, the ViewModel
should know completely nothing about the View
and vice versa. When you use Page First Navigation
approach you violate the first sentence. Here is an example:
QUESTION
I am trying to get server managed authentication working with Visual Studio Mobile Center. It uses Azure App Service Authentication. I was able to setup my Facebook Developer account to allow login, then configured it on Mobile Center, and when I go to the mobile center link for auth in a web browser, it works great.
I setup the client side of the authentication identically to Adrian Hall's examples in his book: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/social/#adding-authentication-to-a-mobile-client
When the webview pops up for facebook, it lets me enter credentials, but then crashes when I hit the submit button. This is the stack trace from the application output window:
...ANSWER
Answered 2017-Apr-12 at 21:57- Open the Azure Portal
- Find the resource group for your Mobile Center backend
- Open up the Mobile Apps resource
- Select Authentication / Authorization
- Check that the Token store is turned on.
If it isn't, turn it on, save then restart and recheck.
I think that's the problem. If not, get back to me here and we'll try something else.
QUESTION
Before I worked with Aws Cognito and it is straightforward how the flow works but I am not able to understand the benefit Azure mobile services authentication. I followed this documentation but it confused me even more. When I use aws with facebook Login.
- user logs in. I fetch the token and user information I pass this token to AWS cognito.
Cognito stores it for me and every time I come back to the app, I ask Cognito "hey cognito is my token still alive". Cognito verifies with facbeook. if yes continue, no ask user for authentication again. as described over here
I expect similar behavior with Azure, is it not happening? why in the link tells me that I need to deal with IsExpired myself by extracting token pattern?
And Other question, Azure is using also federated Identities If I understand, on Cognito I can see the users. where are they stored in azure, can I see them somehow or I need to store myself?
...ANSWER
Answered 2017-Nov-10 at 08:20What is the Authentication flow in Azure Mobile Services? How Social tokens are handled?
mobile client requests Azure mobile front ends (First time)
It will redirect to social platform to login with user custom info.
If it is vaild then identity provider token will be stored in Azure mobile platform
Azure will get the userId or email info from the identity provider token then issue a token with expired time to mobile client and it will be stored in the mobile client.
where are they stored in azure, can I see them somehow or I need to store myself?
We could get the answer from App Service Token Store. We no need to store it ourselives.
Internally, all these tokens are stored in your app’s local file storage under D:/home/data/.auth/tokens. The tokens themselves are all encrypted in user-specific .json files using app-specific encryption keys and cryptographically signed as per best practice. This is an internal detail that your app code does not need to worry about. Just know that they are secure.
As you mentioned link, it is secured and it can be re-used when we can. Based on my experience, it is not security that to store the token in the client never expired.
References:
Architecture of Azure App Service Authentication / Authorization
QUESTION
I am using xamarin facebook sdk for iOS in a xamarin project with shared code and forms UI along with Azure Mobile app backend. I am trying to do client flow login using this sdk but am not able to. The app crashes on device as soon as its launched. However, when using the similar approach on android side (using xamarin facebook sdk for android) everything works superb. My code is based on what Adrian Hall has suggested in his book. It works fine in simulator and opens up the web view for login but fails on device. Following is the code in iOS project:
...ANSWER
Answered 2017-Nov-07 at 14:08I've found the solution to this issue. The issue is with info.plist. With sdk 4.6.0 and above the requirements in info.plist LSApplicationQueriesSchemes tag is only:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install develop-mobile-apps-with-csharp-and-azure
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