Coder Social home page Coder Social logo

angular-azure-mobile-service's Introduction

My home blog and website

Built with my static site generator called sia

angular-azure-mobile-service's People

Contributors

brutaldev avatar chdanielmueller avatar cristiandan avatar hakanostrom avatar kevindstanley1988 avatar lobbyisttracker avatar terrymooreii avatar thomaspe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-azure-mobile-service's Issues

Trouble installing and running

Hey there!

So I have been banging my head against the wall trying to get my app to connect to my azure.
I found your repo and got exciting but this time I am unable to install via bower due to git connection failed...any ideas?
here is what gets returned...
MacBook-Pro:sideMenu2 jl$ bower install angular-azure-mobile-service
bower not-cached git://github.com/driftyco/ionic-bower.git#1.0.0-beta.11
bower resolve git://github.com/driftyco/ionic-bower.git#1.0.0-beta.11
bower not-cached git://github.com/TerryMooreII/angular-azure-mobile-service.git#*
bower resolve git://github.com/TerryMooreII/angular-azure-mobile-service.git#*
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/driftyco/ionic-bower.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection refused

Any and all advice would be greatly appreciated. I hope that installing this will solve the other issue that I am have with it not recognizing "azure-moblie-service.module" .

I have the angular-azure-mobile-service.js in my js directory and linked appropriately in my html. I have also added the url and api key to the angular-azure-mobile-service.js file where prompted.

Thanks!!

How can we use more complex query?

Hi Terry,

How can we use more complex sql queries like:

var sql ="select [user].name as userName, userGroup.groupId, userGroup.userId, userGroup.friendlyName, userGroup.id " +
"from userGroup " +
"inner join [user] on [user].userId = userGroup.userId " +
"where userGroup.groupId in " +
"(select groupId from userGroup where userId = ?) and userGroup.groupId = ?;";

mssql.query(sql, [user.userId, request.parameters.groupId], {
success: function(results) {
request.respond(statusCodes.OK, results);
}
});

URL for example : http://blog.amitapple.com/post/32655170474/joinedtablesview/#.VHxt64dXO-U

Thanks,

getting system properties

Is there any way of getting system properties from a database table (like the __updatedAt or __createdAt)?

If making a raw GET it is possible through querystring like so:
myservice.azure-mobile.net/tables/mytable?__systemproperties=__updatedAt

App not running on device.

Hi,

I am using "angular-azure-mobile-service" in ionic framework with phonegap. Everything is working fine on "CordovaSim" but when I run my app on device, app screen goes blank (black).

I have tried and removed all code one by one and found that when I specify module "azure-mobile-service.module" in app.js angular.module('starter', ['ionic', 'starter.controllers', 'starter.services','azure-mobile-service.module'])
it creates issue with the app on device.

Please advice what is going wrong.

Thank and regards,

API key should not be required

For just read operations you may not want to require an API key.

Easy to workaround by setting API_KEY to an empty string, but it should in fact not be required.

version upgrades

Hey Terry,

azure-mobile-services is already available in version 1.2.7 supporting additional things like Push Notification.
Will you try to implement this ? :)

Custom Authentication setCurrentUser not passing X-ZUMO-AUTH request header query calls

I am using custom authentication. My user object after I call my custom login api returns the below object.
user:{
userId:'Custom:theUserId',
authenticationToken:'theCrazyLongTokenHere'
}
I then call
AzureService.setCurrentUser(user);

I can get that object back by using AzureService.getCurrentUser() and that works so I know it is storing it, but whenever I make a call using query, getAll, or any authenticated api call I always get a 401 unauthorized. I know the authentication is working, I have used angular's
$http({
method:'GET',
url:'https://mysite.azure-mobile.net/tables/myTable',
headers:{
'X-ZUMO-APPLICATION': 'API KEY HERE',
'X-ZUMO-AUTH': 'theCrazyLongTokenHere'
}
}).then(function(values){
//values is completely full of values and i get a 200 ok return
});

When I use this service the X-ZUMO-AUTH header never gets added even when I have setCurrentUser.

Typo en readme

There is a typo in the readme under 'required dependencies'. The link to Angular is angularjs.org (not .com).

AuthorizationLevel.Admin needs the master key

To access methods with AuthorizationLevel.Admin you need the master key, using the Z-ZUMO-MASTER http header. Is that supported? When I try entering the master key for the api key parameter when initializing the service, it doesn't work.

"$$hashKey"

Hi

Angular adds a "$$hashKey" property which causes the save to fail. Can you strip it out on the save/update?

Thanks

Azure Error: Error: '$$hashKey' is not a valid identifier. Identifiers must be under 128 characters in length, start with a letter or underscore, and can contain only alpha-numeric and underscore characters.

Get Single Item by Id

Terry,

Loving the mobile service wrapper, using it on a new project of mine.

Any chance you could recommend the best way to get a single item by id... do you have to construct a query which returns a single item in a collection?

e.g. something like...

 Azureservice.query('items', {
                criteria: function () {
                    return this.id.indexOf(param[0]) !== -1;
                },
                params: [$scope.itemId]
            })

offline data sync

I am just wondering whether offline feature and data synchronization will be included in next release?

Thomas

Statuscode of error

It would be nice to see (in the error callback) the statuscode. Not just "the error callback is triggered when statuscode is not 200". Often it is just 401 but using custom api´s maybe one is sending different codes depending on situation.

How secure is using oAuth in Angular?

A question that popped in my mind about using this service is: How secure is using oAuth (with this service) to protect my backend in Angular?

I'm trying to decide if i should go with Angular for my next project and need to add some user management in the mix. I also need to have my app run as a website (so without cordova/phonegap). So i would like to know if your service is secure enough to provide this functionality.

Library does not work with microsoft accounts

The oauth provider for microsoft in the library is 'windowsaccount'. This doesn't work, it returns an error as an unknown provider. It needs to be changed to 'microsoftaccount'.

Update docs to use del() instead of delete()

Hello,
And thanks for a brilliant library. I'm using it in a project, and it works like a charm.

Please, update the readme to use Azureservice.del() instead of Azureservice.delete(), as the latter doesn't exist.

-AQ

Current User info.

Hi,
is there a way to get current signed in user object to display his name?

Best regards,
Mateusz

IOS webapp using ionic and facebook for login -> whitescreen

Hey Terry,

thanks for this great js library.
I use the ionic framework with angular. and the ionic view app for IOS.

In the Ionic View App on the Iphone
When I try to login with facebook using code
Azureservice.login('facebook').then(function () {
==> it opens up the popup for the facebook connect
==> I get the "Whitescreen of Death" - so the popup doesnt get closed and I cant close it. :(

In my browser environment on localhost it works great - so my facebook app settings are correct...

Azure API Apps

HI Terry,

Thank you kindly for the library, it looks superb.

Quick Question. I've been investigating Azure API Apps and I've heard the Auth is based on Azure Mobile services. Have you tried using this library to connect to an Azure API App?

Cheers

Jim

Push Notification Support

@TerryMooreII Thanks so much for all the awesome work! I am hoping to use this (possibly with a few mods), to run using NativeScript, so that those apps can support an Azure back-end.

One useful feature thayt you don't seem to have added (as it probably isn't relevant for web apps etc.) is push notifications. Is that correct, and if so, could we try and impliment them? I am more than happy to do this, but would appreciate some support in getting familliar with how this service was built originally?

I look forward to hearing your thoguhts!

Upgrade to Azure Mobile Services 1.2.5 unsafe header error

I know the documentation specifically states to use 1.1.2, but my project that i jumped into is already on 1.2.5. Everything seems to work fine that I have come across with your library, but I am getting an error in my console now during a table getAll request. It says "Refused to get unsafe header 'Link'". Not sure if the upgrade to 1.2.5 is a massive undertaking. I just thought I would note that it is out and this library mostly works. Except for the error the response of the calls works as expected.

Azure AD auth provider

Hello,
I am using Azure AD as an authentication provider, and found that I needed to set it as "aad" instead of "windowsazureactivedirectory".

So, my login script should read Azureservice.login('aad') instead of Azureservice.login('windowsazureactivedirectory')

I have change valid oauth providers to the following:

var VAILD_OAUTH_PROVIDERS = ['google', 'twitter', 'facebook', 'windowsaccount', 'aad'];

Although that worked for me, I wanted to track down the original supported list of providers in the Azure Mobile Services. The client library for javascript api docs shows the following values are supported:

microsoftaccount
facebook
twitter
google

Are the docts outdated? am i missing something?

Cheers,
AQ

Retrieving system properties

First, thanks for the great work!

I'd like to be able to retrieve system properties like __createdAt
As far as I see, this is currently not possible.

Fixed it for myself by changing getTable as follows:
...
var data = client.getTable(tableName);
data.systemProperties = WindowsAzure.MobileServiceTable.SystemProperties.CreatedAt;
return data;

Is there a better way? Or, could this be added as a feature?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.