Sharepoint Online Authentication with Play Framework web application (Scala) - scala

We are trying to connect our Play framework application with the Sharepoint Online site collection. As per the ADAL libraries these are JAVA based and we are unable to use these libraries in the Play framework (based on Scala language).
What are the options available to connect play framework web app with Azure AD, so we will be able to view sharepoint data over the internet?
How to configure the SharePoint site collection to only allow the access based on a either a user or an IP Address?

The Microsoft Graph API uses REST endpoints so you can access Azure AD resources regardless of what language or framework you are using. The above document has links to the specific Azure AD and SharePoint documents you will need.

Related

upgrading a custom db to azure app services

I have an exixsting windows 8 app connected to an azure customdb, shared with a web app, using azure mobile services.
I would like to write a new version of the app for windows 10 using azure app services, but I don't find documentation about the changes using a custom existing db.
Where can I find it?
The changes to the database between Azure Mobile Services and Azure App Service are identical. If you want a tutorial on how to use an existing table and project it into mobile apps, I wrote one here: https://shellmonger.com/2016/05/11/30-days-of-zumo-v2-azure-mobile-apps-day-19-asp-net-table-controllers/ - it's part of a sequence of posts, so you may have to go back a couple of posts to get to the start of the ASP.NET ones.

How to change database schema in an Azure Mobile App .NET backend?

I've found documentation on how to change a database schema for an Azure Mobile Service .NET backend, but I haven't found similar documentation for Azure Mobile Apps. For those who haven't been paying close attention, Azure Mobile Services was Microsoft's original backend-as-a-service, and it has now been replaced by Azure Mobile Apps.
The documentation I reference above mentions using ClearDatabaseSchemaIfModelChanges and ClearDatabaseSchemaAlways. Neither appears to be available in an Azure Mobile App.
How can I start with the quickstart ToDo app and modify the .NET backend to include an additional database column?
Behind the scenes, the Azure Mobile Apps SDK uses Entity Framework. You need to adjust your DTO / Model and then add a database migration.

IONIC | Login Authentication using Active Directory

Is it possible to use authenticate user from mobile application using Active Directory credentials in IONIC? I have gone through many google, but could not find any thing specific to Active Directory.
Ionic Framework is a front end framework. You can authenticate by any means that's available from your backend API.
auth0.com offers a soultion that might work for your needs if you want to integrate against a pre-baked solution rather that writing your own. They have a library for Ionic Framework.
You can find github repo here: https://github.com/auth0-samples/auth0-ionic2-samples
Auth0 offers identity management as a service (authentication). The Ionic Framework library claims that you can integrate against:
Google,
Facebook,
Microsoft Account,
LinkedIn,
GitHub,
Twitter,
Box,
Salesforce,
Windows Azure AD,
Google Apps,
Active Directory,
ADFS
or any SAML Identity Provider
Keep in mind that your Active Directory server will have to be available to Auth0 in some way in order for the integration to work. This may not be appropriate if you're building a purely internal enterprise app.

Azure media server rest example

I am trying to find a sample project which utilizes rest / json to upload videos and manage them to azure media service.
I am not able to use the .net wrapper which is available via nuget.
You can look into some code snippets for utilizing REST/JSON to upload videos:https://msdn.microsoft.com/en-us/library/azure/jj129593.aspx. You can check out most of REST APIs documentations here: https://msdn.microsoft.com/en-us/library/azure/hh973629.aspx.

Standalone ServiceStack service for Web & Native Mobile App

Our architecture consists of several backend (non-ServiceStack) services and applications that send data to our system via ServiceStack service hosted in asp.net - this is currently a standalone ServiceProject project containing our required Services/Repository/DTOs following the structure of all the provided ServiceStack samples.
With our backend complete we're now designing our two front-end requirements consisting of a web application and native mobile application. For the web application I'd really like to continue leveraging ServiceStack by using the Razor plugin to create the application's layout/views from our existing DTOs, for our mobile app we will only rely on the ServiceStack service for authentication and data - as it is native it's layout/views will come from it's own SDK.
Can I leave my standalone ServiceStack service as is and:
Create a separate web application project that authenticates
against our existing standalone ServiceStack service and uses the
Razor view plugin?
Have our native mobile app clients
authenticate against the same standalone ServiceStack service?
Most of the examples ie. RazorRockstars I've seen have the services embedded in the web project so I'm not sure if this distributed type of setup is supported. Any guidance or feedback on this is greatly appreciated!
It is very much possible. You can consume the web service from both, web and native mobile application. I worked in a ASP.NET MVC web application which used to make call to Web API service hosted at different server. The Web API service was shared among multiple applications. We were consuming it by making AJAX calls from client.
Something similar to your scenario is done at below link but they are using cloud to host service:
http://www.codeproject.com/Articles/529109/Mobile-2fWebplusClient-2cplusWebplusAPIplusandplus
If you have opportunity to make a web app for mobile instead of native app, then in a single solution both mobile and desktop app can be created. The exemplary solution can be found here: http://nopcommerce.codeplex.com/
Thanks and free free to discuss more in case of further questions.