I'm trying to implement a OAuth2 appcelerator connector for Studio to connect to a wordpress (WP has installed plugins REST API, OAuth2 server). And appcelerator download this module https://github.com/JiriChara/titanium-oauth2-client, but it is a version of 2012 which certainly has flaws. Unfortunately I could not make them work together.
I want to ask the community (Since it is the first time I am developing this type of connection between an app and a website in wordpress), if they have any solution please.
Thank you very much
I think that since the oAuth protocol hasn't changed, you should still be able to use that library you linked to. I see that it hasn't been updated in a while - and maybe that's because there is nothing to update.
If you encounter specific problems using the library you can clone the source and try to fix (maybe even revive the project and push back to GIT).
Basically, oAuth is a set of HTTP calls - so you can write it on your own. But since a lot of the job was already made in that module I would try to get it working and push whatever fixes I can so others searching for the same thing can enjoy it as well.
Take a look at this repo. It is an Appcelerator Titanium widget that was written to work with Azure oAuth2 but it would only take slight modifications to make it work with other oAuth2 systems. I was successful doing this for a recent project.
https://github.com/grantges/co.grantges.azure.adal
The first is that they can update the code (include to require) . I also try to take this module, but does not work .
regards
Related
I am a newbie to Meteor JS so please pardon me if my question is sort of stupid. I've been struggling to find the right way to implement push notification on Android with Meteor JS. It seems like the options out there are surprisingly limited. I've looked into Raix Push, but unfortunately it didn't work for me.
I was wondering if anyone has found a way that still works today to successfully implement push notification on a Meteor JS application (whether through OneSignal SDK, Raix or something else)? If so, can you please be so kind to tell me what the method is, so at least I have a general direction to follow?
Thank you in advance!
I'm using Meteor on one of my bigger projects and have successfully implemented Push Notifications.
I used Raix/Push package combined with FCM (Firebase Cloud Messaging).
There are plenty options like you mentioned yourself but for me the mentioned one was the best.
RAIX/Push only does the sending of push messages to your cloude service (e.g. FCM) and does the token management. But you need to configure the FCM service yourself so it knows, who is a client, who do I send a push notification to..
When you build a APK with Meteor you will get an Android Project which is an Cordova Enviornment which runs your Meteor Application.
You need to follow the steps given in your FCM console (console.firebase.google.com) and bind in some custom data and manipulate gradle and xml files here and there. (You will find detailed explanations there).
edit
here you can see my old post explaining my own mistakes done with FCM/GCM and raix/push
meteor cordova app push notifications (FCM/GCM)
I used to use mysql databases and a php backend for my web applications. Now that I am diving deeper into the the javascript world I am looking for a more compatible way to store my data. I like the idea of writing everything in one language, and javascript seems to be capable to make that job.
I started reading about couchDB and the JSON/javaScipt approach seems to fit perfectly to my needs. My question is now, which would be a convenient way to connect to the database from my pages.
I found this post, which explains how to connect to a couchDB directly from a client-side javascript using a library called couch.js. The post is quite a few years old and the library I cannot find anywhere in the web. So I am asking myself If this approach is still up to date.
I was thought that one important reason for using a server backend is to provide a security mechanism to protect the database authentification process. So: Is it generally secure to save an (encrypted) db pwd in a client side script?
So what I am looking for is a quite simple way to access and store json-like data from webpages. Are there any suggestions?
The hosting of the production solution should also be not that difficult and in the end not expansive, since it's rather meant for smaller projects at the moment.
If the post does not fit to the forum, let me know a better place for it..
I have been using the CouchDB jQuery Plugin for development. At first I was hesitant as well to use it due to most documentation being at least a few years old. So far it has worked really well and been very easy to use, especially if you are familiar with JavaScript/jQuery.
...
You can get the plugin from Github
CouchDB jQuery Plugin
Or you can save it directly from Futon:
http://localhost:5984/_utils/script/jquery.couch.js (where local host is your IP and 5984 is the port CouchDB is on)
Whatever you do, make sure you enable CORS on your database. There are instructions on the Github Readme page, or this script is super useful and easy to use through npm.
...
Documentation can be found here.
This reference has also been very useful for me.
...
Good luck!
I just released Slouch, a JavaScript client for CouchDB that can be used in both the browser and in node. I hope this helps!
I've found plenty of documentation on how to perform Splunk searches from within Node.js (thanks in chief to the Splunk javascript SDK documentation).
However, that's not what I'm trying to accomplish. I am hoping to use Splunk as my logging/monitoring/analytics solution for a site which is driven by node.js. I need to be able to log different types of events (login errors, page requests/responses, etc) for Splunk to index and make usable.
How can this be accomplished? Is it part of the SDK (or the API itself) that I'm just overlooking?
Thanks for any insight.
At our recent Splunk Conference we held a Hackathon and one of the winners actually developed a Splunk transport for Winston. You can grab it from github.
Take a look at Winston. This is a framework similar to Log4Net or Log4J which provides variable log levels and transport options.
They do not appear to have a "transport" / plug-in for Splunk, but they have several others including the relatively similar Loggly. They also have instructions on rolling your own, so it looks like a good place to start.
Does DerbyJS in current shape can implement authentication, if yes what's best way to do it? of not is their any work around to do it?
I'm very happy to share that Derby has released the first version of Access Control at the Racer level. Initial details are in the Racer package at https://github.com/codeparty/racer/blob/master/src/accessControl/README.md.
You track its ongoing progress with this github issue - https://github.com/codeparty/derby/issues/47#issuecomment-6337980
Use the derby-auth npm module: https://github.com/lefnire/derby-auth
No it does not yet, although the developers have said that it's one of the top things that they're working on. https://twitter.com/#!/derbyjs/status/194463304440221698
You might be able to build it in to your application, but at this point it doesn't really seem worth it. Unless you need it ASAP, I'd just wait until the developers officially release integrated auth.
You could simply use a reverse proxy to provide the security and https termination.
I'm currently trying NGINX.
Restrict the Derby server to listen on localhost and get NGINX to be the https terminator along with providing Basic Auth - or work up your own form-based login in Derby and keep NGINX as the https terminator/proxy.
You can already achieve simple authentication with the current feature set of Derby and Racer. Look at the source of the chat example for some inspiration.
There's also an open-source Derby app called HabitRPG which brought this a little further. The developer is working on integrating EveryAuth into the authentication process.
Also, an official EveryAuth example is to be expected from the authors of Derby and Racer in the coming weeks.
see the "auth" example in
https://github.com/codeparty/derby-examples
just committed this pull request ::
https://github.com/redaktor/derby-examples/commit/0edbbcc7e471e4c2441cfbd4e969007024bfd06e
it is not merged yet but if you change the 2 lines from the pull request as well, everything should work out of the box.
The newest derby module for login is here github.com/derbyparty/derby-login
I will be developing a web application with Google App Engine that will use Facebook Connect as the only means of registering / logging in. The web app will be written in Python. I need to know their name, profile pic, how many friends the user has, as well as their age and also possibly location, relationship status, work info, etc. (although those are mostly optional besides name, pic, age and friend count).
There seem to be a number of libraries that can do the task. There is the official Facebook Javascript SDK, minifb, and pyfacebook to name a few.
How do you think I should go about this task? Which libraries should I use, and what are the pros / cons?
Also to be considered is how well documented the code is and how widely it is used. If you can provide links to relevant example code / documentation, that would be greatly appreciated.
Facebook python-sdk has an example application to use Facebook connect with Google App Engine. I guess, you are looking for the same.
This should be a comment for the answer which suggests using the Facebook python-sdk.
Note that at github it says
This SDK is deprecated. It does not support the new cookie format that
we rolled out as part of the OAuth Migration. In short, it doesn't
work.
I've had success with the facebook-sdk project, which I believe is a fork of Facebook's original (and now dead) python-sdk project noted above. However you may also wish to check out EngineAuth.
Why don't you check out this similar question asked by another StackOverflow user:
Simple Facebook Connect in Google App Engine (Python)
There are some links provided here that sound exactly like what you're looking for.
For all specified detail you need to go with respective permission from users and then you can extract all specific information you needed.
You can go by either Graph Api or Javascript Api:
But with javascript you need to use many ajax request through your application where graph api only need access_token once for particular instance and also independent of client action.
Graph API also helps you in preventing use of other framework like pyfacebook, minifb, etc.
Apart from pros and cons you can also look some example code for both javascript and graph api
Hope this information will be useful to you.