Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Swapnil Tripathi
    @tripathi-swapnil
    and error is
    Error: 404 - No service is hosted at the specified address..TrackingId:414e948f-778d-4d9a-b784-63c74a9d86ad_G7,TimeStamp:12/15/2016 10:39:28 AM
        at Function.ServiceClient._normalizeError (/home/user/JRNY_code_repo/jrny-api/jrny-api/node_modules/azure-common/lib/services/serviceclient.js:814:23)
    Need complete tutorial or sample code
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    "Easy Auth" is kinda hard actually. since i don't wish to post questions to stack overflow, anywhere else better than here to put Easy Auth questions? would be really great if we could get the Easy Auth team invited to participate actively here...
    there's a code example that uses jquery to call /.auth/refresh
    it's unclear to me how that could ever be secure
    in order for /.auth/refresh to work, the request needs to be authenticated with a token that was obtained with the offline_access scope
    so by definition, that same token could be used to authenticate a request to /.auth/me and obtain the refresh_token
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    so, it follows that we would never want a token with that scope made available to code running in the browser, no?
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    ah, i guess the example in that post is using cookie auth, not token auth, so that might be OK...
    Anuj Pandey
    @qanuj
    is it possible to get have some relationship concept with NodeJS backed and tables ?
    modified question: is it possible to have some relationship concept with NodeJS backed and tables ?
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    @qanuj not really sure, but this is probably worthwhile reading: https://shellmonger.com/2016/05/27/30-days-of-zumo-v2-azure-mobile-apps-day-26-relationship-advice/
    seems like no if that's still accurate:
    The Node.js Server SDK for Azure Mobile Apps does not support relationships in any way, shape or form
    Steve Lee
    @SteveALee
    @qanuj do you mean SQL relationships between tables? If so I believe not with the simple App Service tables. You'd need to use SQLServer
    Anuj Pandey
    @qanuj
    yes, the sad case of using The Node.js Server SDK for Azure Mobile App.
    another question would be if there is a support for Complex Object so, one can manage the Related Object in same table.
    Steve Lee
    @SteveALee
    I like nodejs :)
    I got impression tables are for the simplest possible data need - ie single table. Anything more complicated you have to mange/hack yourself or use a full DB service.
    you might be able to serialise objects to JSON and store the strings?
    Anuj Pandey
    @qanuj
    thanks @SteveALee storing related parent object could do the trick. for now.
    as string ie.
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    continuing to see hanging/timeouts in very straightforward oauth/login flows at the POST to /.auth/login/aad/callback. not interested in posting to stack overflow, but forum post updated: https://social.msdn.microsoft.com/Forums/azure/en-US/54ed3ad6-e218-439f-ba33-91411f5b21de/how-can-i-troubleshoot-easyauth-errors?forum=azuremobile
    just don't see any way for me to be able to troubleshoot this. flying completly blind, my guess is that something is going wrong with cookies
    either "Nonce" cookies, or "CompletionType" cookies that are meant to indicate that the login flow is happening in an iframe?
    here and there, i've been able to get a glimpse at errors at what appears to be something like this line: https://github.com/Azure/azure-mobile-services-node/blob/master/runtime/request/html/templates/loginviaiframe.html#L31
    var frame = window.opener.frames[receiverFrameName]
    Ghost
    @ghost~55e35bf20fc9f982beaf176a
    the error will be something indicating that window.opener is undefined
    (which makes sense, because i'm not using the js client for login, so i'm not using popups)
    Ariel
    @Draidel
    Anyone can help me with some basic configuration of azure please? :)
    hussam-alsh
    @hussam-alsh
    hi
    Swapnil Tripathi
    @tripathi-swapnil
    @danderson00 - not able to get build on azureappnode
    
    \\?\D:\home\site\wwwroot\node_modules\bcrypt\build\Release\bcrypt_lib.node
        at Error (native)
        at Object.Module._extensions..node (module.js:460:18)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:311:12)
        at Module.require (module.js:366:17)
        at require (module.js:385:17)
        at bindings (D:\home\site\wwwroot\node_modules\bindings\bindings.js:76:44)
        at Object.<anonymous> (D:\home\site\wwwroot\node_modules\bcrypt\bcrypt.js:3:35)
        at Module._compile (module.js:435:26)
        at Object.Module._extensions..js (module.js:442:10)
    Application has thrown an uncaught exception and is terminated:
    Error: %1 is not a valid Win32 application.
    
    \\?\D:\home\site\wwwroot\node_modules\bcrypt\build\Release\bcrypt_lib.node
        at Error (native)
        at Object.Module._extensions..node (module.js:460:18)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:311:12)
        at Module.require (module.js:366:17)
        at require (module.js:385:17)
        at bindings (D:\home\site\wwwroot\node_modules\bindings\bindings.js:76:44)
        at Object.<anonymous> (D:\home\site\wwwroot\node_modules\bcrypt\bcrypt.js:3:35)
        at Module._compile (module.js:435:26)
        at Object.Module._extensions..js (module.js:442:10)
    Swapnil Tripathi
    @tripathi-swapnil
    @danderson00 - it works on my local but fails on azure
    atorefrank
    @atorefrank
    @atorefrank
    Getting the following error when I attempt to tunnel into my azure container cluster through port 2200. I have my SSH2 public key used to provision the swarm container.connect to host XXXXXXXXXXXXX port 2200: Operation timed out.
    Here is the command ssh username@XXXXXXX.westus.cloudapp.azure.com -p 2200 -L 22375:127.0.0.1:2375
    L Suarez
    @lsuarez5280
    Hey guys. I realize the channel's focused on the node implementation for Azure mobile apps services, and my service implementation is in .NET, but I was wondering more generally if it's possible to secure my service using an OAuth access token issued by my corporate OIDC SSO system?
    John Tobin
    @jtobinisaniceguy
    Does anyone have example source code for uploading a file using azure mobile client and azure-mobile-app in node.js? For mobile client, how is this kept in sync with offline sync feature?
    Rizky Ario
    @rizkyario
    Would it be possible to set 'authorizations config' of SwaggerUi?
    Navneet Garg
    @navneetccna
    can we create admin dashboard using azure-mobile-apps-node ?
    Dale Anderson
    @danderson00
    Sorry about the delay in responding, people. Gitter has not sent me a notification of unread messages in about a month!
    Dale Anderson
    @danderson00
    @qanuj You can use the REST API or directly modify the contents of the database. Unfortunately, there is no in built support for relationships. It's been on the cards for quite a while, but is unlikely to be implemented - it's a complex area. I would suggest that you enforce your relationships in your client app and update individual records. Alternatively, as @SteveALee mentions, you can serialize complex objects into a single string column.
    @ephemorality The authentication implementation is not part of Mobile Apps, it's now built in to Azure Web Apps. I don't have enough detailed knowledge of the area to know what's going wrong. I know you're not a fan of posting on stackoverflow, but this is your best option - the team actually has competitions to see who can answer the most questions, so you're pretty much guaranteed a quick response :)
    Dale Anderson
    @danderson00
    @Anshdesire This is almost certainly because bcrypt is a native module. Are you deploying your node_modules folder when you deploy? If that's the case, you need to ensure that the major version of node you are using (0.10.x, 0.12.x, 4.x, etc) matches the one used on your site, and must also be 32 bit. Alternatively, if you don't deploy the node_modules folder, it should be installed for you when you push.
    @atorefrank This channel is for support of Azure Mobile Apps. We don't have anything to do with Azure Containers. I suggest posting on stackoverflow with the appropriate tags.
    Dale Anderson
    @danderson00
    @lthib It's possible to use a custom identity provider in Mobile Apps. You essentially need to mint your own tokens using the jsonwebtoken library using the signing key that the web app generates. There is an example in the samples folder of the github repo. The sample just covers a simple username / password scenario but should give you good guidance for using your provider.
    @rizkyario I see you opened an issue for this. We'll certainly look at implementing this, but resources are a bit stretched at the moment and it may take some time. In the mean time, you could manually insert the authorization properties into the swagger JSON. If you created a similar endpoint in express to the swagger middleware, you could insert the auth properties.
    Dale Anderson
    @danderson00
    @navneetccna Sure, was there a specific area you needed help with?
    Hope I didn't miss anyone! Thanks for your patience.