Who Viewed the Topic

Similar Content

I'm trying to get a token from an authorization server using cURL in Insert From URL. When I make the following request in Terminal
curl -i -X POST -d 'username=myaccountname&password=mypassword' https://authserver.com/login
I get the token back in the response header.
Since FileMaker doesn't support the --include (-i) option I haven't been able to figure out how to get the response header with the token. Anyone have any ideas on how to accomplish this?

Thanks in advance!
-Kent
UPDATE:
Okay, I figured out I can get a response header by using the option --dump-header and setting it to a variable. The only problem now is that the token comes from a redirect location and I'm only getting the response header from the original URL. I'll keep working on it but I'll be happy to get whatever advice anyone can offer in the meantime.

With the introduction of cURL options in FM16's Insert from URL script step I've been investigating the possibility of being able to save a copy of my FM solution directly to my Dropbox folder using the https://content.dropboxapi.com/2/files/upload element from Dropbox V2 API.

I've successfully created the access token to pass through as part of this step and the Insert from URL script step successfully creates the stated folder and file in my Dropbox. However, the file size is always 0 bytes. I've tried 2 different methods

METHOD 2
#Export a compacted copy of this file to Temporary Folder and then import to a container field
Set Variable [ $file_path ; Get ( TemporaryPath ) & "Solution.fmp12" ] //note1
Save a Copy as [ "$file_path" ; compacted ] //note1
Insert File [ PREFERENCES::Container ; "$file_path" ] //note1
#Set variable following instructions on FileMaker website which states:
# - Direct file access is replaced with a FileMaker variable prefixed by the @ character.
# - To access a file, you can set the variable to a container field, which contains the file, then use that variable as the parameter of the cURL option.
Set Variable [ $container_path ; PREFERENCES::Container ]

Any ideas as to why the file is created but with no content. I've also tried this with a number of different file types (.png, .txt, .pdf) by manually inserting a file into the container and greying out the 3 steps marked //note1 above but the result is always the same.

I'm looking for a method of authenticating with google via FileMaker. I would like to run post commands via the Insert from URL command to allow my FMDB to publish Cal Events to a specific calendar. Realistically I'd want this to be automatic when an appointment is assigned on the system.
At the moment, I can get a post to work, but it returns an error. I imagine this is because the authentication hasn't taken place.
Has anyone managed to get a working OAuth 2.0 setup/Google Login on Filemaker that will work with POST and GETs.
Once I've got Calendar to work, then I want to start on Drive and Gmail.
Thanks!

Hi. I am trying to script the getting of some data from a website that has an API. I have BaseElementsPlugin and was given an example bit of code by the website:
data = {'domain': domain, 'include_generic': True}
headers = {'X-Api-Key': 'xyz123'}
resp = requests.post('https://api.anymailfinder.com/v3.0/search/domain.json', data=data, headers=headers)
I have never dealt with this kind of programming and am not even sure where this info would go or what script step(s) I would use to call this. Is this CURL? Are you aware of sample FM scripting that I could use as a model to figure this out?
Thanks for any help with this!

Some BackStory:
When FMCloud was first announced, I was ecstatic; I'm all for moving towards cloud technology for my agency. I was nearly there...about to pull the trigger and start a migration scheme from my current setup into the FMCloud, but then the one big caveat was found..
"Supports custom app authentication via FileMaker user accounts only" AKA no External Authentication. But that is fine, I understand it was released for small businesses which need the scalability of AWS, but this DOES NOT work for my agency. I spent half a year moving away from filemaker user accounts, I can't go back; plus they have a Single Sign-on initiative that I'm trying to meet.

But I still need to get off of my old physical towers.So my next idea is that I want to spin up an EC2 in AWS and put filemaker server on it as an alternative, but I can't find any verbiage that details how that works(or if it works) in the way that I would like. Namely, I need my AWS server to talk to Active Directory, preferably by ADFS or SAML (lesser so).

So the question:
Can I setup external Authentication to an Active Directory from a server being hosted on AWS that is housing FileMaker Server 15? If so, What should I make note of before diving into this?