bettiolo / oauth-signature-js

JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser
https://www.npmjs.com/package/oauth-signature
BSD 3-Clause "New" or "Revised" License
232 stars 71 forks source link

Example HTML for the given oAuth example #42

Open TacodeJong opened 6 years ago

TacodeJong commented 6 years ago

Hi,

I'm very new to javascript. I'm trying to use the js for a filemaker project. Right now I'm very unable to get the example working in a regular html file.

Have a pretty simple HTML (textfile below) but all I get is a blank page. I'd expect a signature in the browser window.

Can someone point me in the right direction?

Thanks, Taco

TacoTest.txt

bigtomjp commented 6 years ago

Taco,

FileMaker is not a web server. It has a limited PHP install and FMS16+ has nodeJS, leveraging these for this purpose is not supported and will not work on local clients.

The only thing the FM client has is a browser engine that can process JS. You need to look at this example and build based on that. This is not plug and play nor as easy as some simple copy/paste. If you are not familiar with JS you might consider finding someone who is and using this as an external web service on a real web server to process and return a result.

On Apr 23, 2018, at 4:14 AM, TacodeJong notifications@github.com wrote:

Hi,

I'm very new to javascript. I'm trying to use the js for a filemaker project. Right now I'm very unable to get the example working in a regular html file.

Have a pretty simple HTML below but all I get is a blank page. I'd expect a signature in the browser window.

Can someone point me in the right direction?

Thanks, Taco

`

OAuth Signature Generation ` — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
TacodeJong commented 6 years ago

Don't intend to use FM as a webserver. Filemaker generates the html with the right parameters. The web viewer executes the js function and displays the signature. After that the webviewer can be used to extract the signature and put it into a variable or field for further use.

The test-runner.html does work in Filemaker. Only, these are input fields on a form. It seems to me that it must be easy to fill in these variables instead of by hand.

Want to get in and out of js as quick as possible.

My hope is to find answers on forums. But if it's too difficult to accomplish, I'll drop it.

bigtomjp commented 6 years ago

That is a question for the FM Community.

On Apr 23, 2018, at 8:30 PM, TacodeJong notifications@github.com wrote:

Don't intend to use FM as a webserver. Filemaker generates the html with the right parameters. The web viewer executes the js function and displays the signature. After that the webviewer can be used to extract the signature and put it into a variable or field for further use.

The test-runner.html does work in Filemaker. Only, these are input fields on a form. It seems to me that it must be easy to fill in these variables instead of by hand.

Want to get in and out of js as quick as possible. The help would be to point me in the right direction regarding the textile above.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

TacodeJong commented 6 years ago

Actually: no. It is the html in which I try to execute the function. Can do that with simple js but not with this js. If it's possible to pre-populate the variables (paramters) in the html script-tags it's very easy to do such in FM. That is what I'm asking: a working html, not a FM solution. FM is not the the problem.

bigtomjp commented 6 years ago

Interesting. You must know more than me then.

On Apr 24, 2018, at 3:06 PM, TacodeJong notifications@github.com wrote:

Actually: no. It is the html in which I try to execute the function. Can do that with simple js but not with this js. If it's possible to pre-populate the variables (paramters) in the html script-tags it's very easy to do such in FM. That is what I'm asking: a working html, not a FM solution. FM is not the the problem.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.