token

Cant get token from janrain.

Hi! I set up the authentication window, according to the introduction janrain, but as the callback come, there is no token. What could be the problem? Here is the magic code: ... $rpxApiKey = '95c8d032db3db656e7716749552ff12c82f7108f'; if(isset($_POST['token'])) { echo "hello"; /* STEP 1: Extract token POST parameter */ $t...

Drupal: Token for date CCK field as plain text

I'm using the Rules module to send a mail and I'm inserting a token that represents a CCK Date field. This token contains HTML formatting which should not be present in a plain text mail. So when I insert the token I get <span class="date-display-single">06.09.2010 - 15:52</span> Instead of 06.09.2010 - 15:52 which is what I want...

Twitter oauth Request Token Response code 401

Hello, I am working on a twitter oauth login. However, when I do the request_token, the very first step, the response code always return 401 Unauthorized. I have searched a lot for a week, but I cannot find the solution, please help. Here is my connection: URL url = new URL("https://api.twitter.com/oauth/request_token"); HttpURL...

Grab x number of words before and after a given keyword?

How can I go about grabbing [x] number of words before and after a given keyword in a string in PHP? I am trying to tokenize results from a mysql query tailored to the keyword as a snippet. ...

What encoding is the device token for APNs in?

Hey everyone, Is it possible to get the Device Token returned from the application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken method? Since I'm not very good at PHP, I'd like for my user to manually enter the token into a program on their computer that is going to be used to send ...

Authentication through a token pass in ASP.NET MVC

I'm working on a solution to part of my companys site that is done in 2 different languages. My part of the project is in ASP.NET, and the login portal is in a different language. We pass authentication credentials by storing login information in the database on the portal page and then sending a corresponding token to the URL in the ...

Getting Invalid Authsub Token Error 403

Hi, I am trying to authenticate my application using Blogger API but when user grant access to the application and blogger api return the token and the token i use to exchange the by sending the request on https://www.google.com/accounts/AuthSubSessionToken it return an error called Error 403 Invalid AuthSub Token. Kindly help me in this...

Why is my string parsed differently via strtok on Windows and Linux?

In my program I'm cutting my char* with strtok. When I'm checking on Windows it's cut like I want, but when I'm doing the same thing on Linux, it's doing it wrong. Example : Windows: my char* (line) is : "1,21-344-32,blabla" in the first time I do strtok I get "1" in the second time I get "21-344-32" Linux: my char* (lin...

Apple iPhone Push Notification Development and Production Tokens

Do production tokens stay on the device indefinitely unless it is wiped clean? We have downloaded our app from the app store onto a new iPhone and we noticed that the device registers the same apns production token if we delete and reinstall the app. It also appears to be registering the same production token after we delete the app an...

Struts2 token interceptor using Ajax or multiple tabs

I'm using the token interceptor on my application, but I have encountered a problem with two case scenarios: 1 - When I submit the form using Ajax, the first time everything works perfectly, but the second time, the server sees that as a repeated token, which is okay, but I would like to know if I can avoid that without refreshing the p...

String tokenisation algorithm won't tokenise

Morning all, I am writing a bash script to extract the values of certain XML tags from all files in a given directory. I have decided to do this by tokenising each line and returning th4e relavent token. The problem is that it isn't tokenising correctly and I can't quite work out why. Here is the smallest example that I could make tha...

HTTP URL token standard

I need to develop a feature in the system which allows unregistered users to get one-off system access via URL token that is generated/sent by an authenticated user. For example, a user logs in and wants to share a piece of information so the system generates a URL like http://host/page?token=jkb345k4b5234k54kh5345kb34kb34. Then this UR...

List of "tokens" on Lucene 3

Hi there, I'm new to Lucene, i started learning the version 3 branch and there's one thing i don't understand (obviously because i'm not experienced in the subject). In Lucene 2.9, if i wanted a list of tokens i would create an ArrayList of Token class, ArrayList for example. That's pretty intuitive for me and the concept of token is...

What is the proper URL to get an Auth Cookie from a GAE based Application

I have an android app I want to connect to a Google App Engine based server. I can get the auth token from the AccountManager. It seems the next thing I am supposed to do is talk to an auth page to get a cookie. Following the awesome instructions here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-ap...

Rails: InvalidAuthenticityToken while token is supplied

I'm trying to use an Java Applet for uploading files to my rails application. However I keep getting the following error and I can't figure out why: Processing CategoriesController#upload_image (for 127.0.0.1 at 2010-10-18 20:32:54) [POST] Parameters: {"partitionIndex"=>"0", "fileId"=>"8278320", "lastModified"=>"2010-09-18T14:31:...

Ignore parentheses with string tokenizer?

I have an input that looks like: (0 0 0) I would like to ignore the parenthesis and only add the numbers, in this case 0, to an arraylist. I am using scanner to read from a file and this is what I have so far transitionInput = data.nextLine(); st = new StringTokenizer(transitionInput,"()", true); while (st.hasMoreTokens()) ...

Read input using token

Possible Duplicate: Read input as array Hi i want to make something read from inputstream to store in array int[] inputInts when i type "read 1 2 3 4", what should i do? i do not know the size of the array, everything is dynamic... here is the current codes BufferedReader stdin = new BufferedReader( new InputStreamReader(S...

Undefined datatype: 'token'

Scenario: I am trying to collect information from xml file. To do so, i am using the xmlschema provided. plan is to readxmlschema against dataset and later read xml file. Please suggest me best process if the existing is not appropriate. Anways during this process i encountered this following issue. I am trying to readxmlschema into a d...