ActionScript 3.0 :: Password Authentication For Php Upload?

Sep 4, 2011

I'm making an Air file that uploads and overwrites an XML file.

So far, the php is very simple:
 
$everything = $_POST['saveThisXML']; 
$everything = stripslashes($everything); $toSave = $everything; 
$fp = fopen("settings.xml", "w");  if(fwrite($fp, $toSave)) echo "writing=Ok";  else echo "writing=Error"; fclose($fp);

I'd like to set up a user name and passowrd that the user enters in the Air app.  Is it then just a matter of sending POST data to the php file, and have it check the user and pass variables?  Is that a reasonably safe way to do it?  If not, can someone please point me in th edirection of a good tutorial that they're used on this topic?

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Password Authentication Is Flash?

Apr 24, 2005

it there any way to create an advanced password authentication in flash ? I saw the tutorial here :[URL] but I want to take it to the next level an create a more advanced authentication that will draw the passwords from a database or something external ( asp, php ). what is the most secure way to do it ?

View 5 Replies

Flash :: Automate Authentication Via Adding The Username / Password In The Profile XML Of Media Encoder Live (3.2)?

Feb 28, 2012

Is there a way to automate authentication via adding the username/password in the profile XML of flash media encoder live (3.2)? I'm not referring to the command line parameters, but placing a tag in the xml file that contains the username/password for both the primary and backup server.

View 2 Replies

Asp.net :: File Upload In Flex When IIS Is Set To 'integrated Windows Authentication'

Dec 8, 2009

I have a flex app that allows the user to upload a file.The flex side uses the FileReference.upload method that goes to an .aspx page that handles the upload. It works only intermittently when I have IIS set to integrated windows authentication.That said, for testing purposes,I wrote a separate aspx page that does a file upload and this always works.I'd like to leverage the file import,though, within the nice looking flex app and not kick off a new webpage for a file upload.In looking at the IIS logs I have a hypothesis as to what's happening, and want to know if someone has full understanding as to why it may only intermittently work and can confirm or deny this: Flex' FileReference upload guts does whatever it does on the client then initiates a POST request to my .aspx page.On the times it failes, the IIS logs state that IE didn't pass the credentials so denies the request then sends a 401 response.

I don't get this 401 response on the flex side even though I'm listening for HTTP status codes (flash bug?).A new request is somehow immediately made to perform the upload again (it's not my code). I'm inferring this by looking at the IIS lgos which shows a second POST right after the previous one, only this time the user credentials are sent through, but the kicker is that the file the user uploaded is not uploaded this time. I infer this by the fact that the IIS logs show 0 bytes are posted, whereas the previous 401 request show a lot of bytes are POSTed.On the times it does work, what happens is that the first request for the HTTP POST the FileReference makes so happens to send the windows credentials along, so the client is not challenged.

View 1 Replies

Iis - Uploadify (flash File Upload) & Integrated Windows Authentication

Mar 31, 2010

I'm running into an issue with Uploadify. I have put Uploadify into my app and all works fine in dev (using the VS web server). All worked fine and checked until I deployed the app into my test environment which uses Integrated Windows Authentication. When I actually go to upload the file, the browser brings up a login prompt. At this point, even if you type in the correct username and password, the request seems not to complete and even if you tell the browser to remember the password it still brings up the login prompt.

When this started to occur, I decided to spin up Fiddler and see what was going on. But guess what, when ever Fiddler is running the issue doesn't occur. Unfortunately I can't make running Fiddler a reuqierment for running the app. I know there are some issues with Uploadify/flash when using forms authentication but I didn't think they carried across to Integrated Windows Authentication.

View 2 Replies

Flex :: File Upload - FileReference Doesn't Work With NTLM Authentication?

Jul 15, 2011

We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will be popup asking the user to input credentials.I've queried some resource from internet and it seems this is a bug of FileReference component.

View 1 Replies

Professional :: Password Protecting A Swf To Upload To Website

Jul 19, 2011

how to password protect a swf uploaded to my website.
 
I have a swf that is a work in progress, is NOT ready for public viewing, and i need some critique from a friend in the USA, and if i could upload it and give her the password, it would be viewable only for her, or for whoever else i'd give the password.
 
So, i've looked at a thread from a while back,[URL], which explains stuff that is beyond me, on xml programming.
 
And, i am aware that the Publish settings has an option to add a password, I tried it but am unsure what that does if anything.

View 12 Replies

ActionScript 2.0 :: Save A Page - Add Some Sort Of A Password Or Save Feature To People Can Type In The Password

Sep 23, 2008

Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.

View 1 Replies

Flex :: Use The FileReference.upload() Function To Upload Files To Sharepoint Or Have To Use The SP Web Services

Feb 5, 2010

Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.

View 1 Replies

Flash :: Upload Only 2 Files On Domain At Time, FileReference.upload Limitations?

Jan 18, 2012

I am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.

View 1 Replies

Actionscript 3 :: Change Single-image Upload Into Batch Upload?

Feb 28, 2012

EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:

[object Document] called.
doDragEnter() called.
doDragDrop() called.

[code]......

View 2 Replies

ActionScript 3.0 :: Using FileReference's Upload To Call A PHP Script From One Folder & Upload Elsewhere?

Sep 9, 2009

Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?

View 1 Replies

Php5 :: Upload Error 500 When Using Flash To Upload

Dec 1, 2010

I've been trying to configure uploading and I've been getting an error 500.I'm running a server on Apache2 with php5+ installed. I'm curious to why i keep getting an error.[code]I added those to my .htaccess file

View 1 Replies

ActionScript 3.0 :: Using A PHP Upload To Upload Files To Server?

Nov 8, 2011

I am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....

ActionScript Code:
if (PDFFiles[i] != false){ 
PDFFiles[i].upload(uploadPHP);
}

As the loop runs quicker than PHP can upload, the success of....

ActionScript Code:
function fileUploaded(e:DataEvent):void {
trace "Success"}

....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?

View 6 Replies

Media Server :: Authentication On FMS 3.0.1?

Apr 28, 2010

I have a windows server(2003) with FMS 3.01 and already installed Authentication Add-in (3)... Already open' up a command prompt and added users using users.exe ($ROOT/conf) and checking them after, but when i go and publish something with FMLE 3, it still doesn't promp for a user and pass login. Restarted the server and everything else, and nothing seems to work!

View 16 Replies

Java :: Alternatives For Authentication?

May 8, 2010

Preferably something that integrates well with a Flex front end. Yes the Spring Security guys say this is possible, but all examples seem to use legacy jsp tag libraries making them half useless as examples.I don't want to spend a month setting up and learning how to use a security tool. I would like a tool which supports using annotations (@RolesAllowed etc), MINIMAL XML, and 'remember-me' features (not cookie based).Apache Shiro seems to support Flex/Silverlight/Swing as well but I'd like to know if there are any other alternatives that are NOT container specific.

View 3 Replies

ActionScript 2.0 :: User Authentication Using PHP

Oct 30, 2009

I'm building a site that is placed behind a client login tool. I simply need my site to verify the users "authentication level" so they are forwarded to the correct "label/frame" on my time line.

I.E. Owners go to the "Owners" label on the time line, Managers go to the "Managers" label on the time line and Employees go to the "Employees" label on the time line.

I know Flash is accessing the PHP file as when I change the name of the PHP file, Flash provides an error. Therefore, I'm assuming it's reaching the file as I'm not getting any compiler/output errors.

My Actionscript

stop();
loadVariablesNum("newlogin.php", 0, "POST");
{
if(_root.checkLog = 100)

[Code].....

This PHP file is stored in the same folder as the FLASH SOURCE files and is pointed to it through it's local address ("newlogin.php", 0, "POST);

View 1 Replies

Media Server :: FMS 3.5 And LDAP Authentication?

Feb 22, 2010

I'm using FMS 3.5.3 Developer edition and trying some VOD solution before I can proceed to purchase FMIS 3.5. Basically, I need to have a mechanism for certain sets of flash movies to be secured by user authentication.
 
Now, for Apache, I can secure a directory of webpages by using .htaccess; whilst for IIS or Windows Media Service, I can use NTFS ACL at directory level. My question is: How can I setup a VOD subdirectory that every video files inside need to be authenticated before streaming to client. The authentication authority can be either Active Directory or LDAP.
 
I've read the developer guide and notice that such authentication requires both client-side and server-side ActionScript. But I'm not a Flash author and I don't have Adobe Flash CSx installed. Can't this simple authentication be done at configuration level?

View 5 Replies

Media Server :: Can't Add User Name In An Authentication Add-in

Jul 21, 2010

when i enter the following commend users add -u username -p password it returned the following error users: invalid option -- u

View 7 Replies

Professional :: CS5 Trial Download Authentication?

Aug 2, 2010

I'm trying to download Flash CS5 through Download Accelerator Plus (DAP). I've already logged into Adobe website but my DAP keeps on asking username and password authentication for trials2.adobe.com. It does not accept my Adobe username and password. What then is the username and password for trials2.adobe.com supposed to be?

View 1 Replies

ActionScript 3.0 :: Digest Authentication In Flash AS3

Apr 11, 2011

I am having a scenario where I need to access a service but when accessing it, I get an HTTP authentication popup of browser. I don't the users to see this. I talked to a guy working on same thing in some other technology and he mentioned that they are using Digest Authentication. I need to know how this can be achieved in Flash.

View 1 Replies

Media Server :: 4.02 64-bit - Install The Authentication Add-in?

Jun 23, 2011

The FMS_auth_addin_win_v3.msi insists to put the files into C:Program Files (x86)AdobeFlash Media Server 4conf but the server is installed in C:Program FilesAdobeFlash Media Server 4. I nuked all the Abobe content in the 32 bit area, but it keeps re-installing it there. The server used to run 32-bit FMS 3.5, but since we upgraded, I can't get the authentication addin to work. Can I just copy the thing over?

View 11 Replies

Flash :: Php - Facebook Game Authentication

Apr 9, 2012

I need to authorise my Flash game (which runs on Facebook) users against my game server. I'm able to get their data like id, access token, etc, from Facebook on the client (I'm using the Flash Facebook API) but I'm not sure how to authorize them on my game server (e.g. do a login with a database query). One scenario that I have on my mind:

If I could get the same access token from Facebook on both the client (which I already do) and the server (with, for example, a redirect URL, which I tried but does not seems to work), then I could easily compare the two tokens (together with the user IDs) and thus authorize the user. UPDATE To put it simpler, I want to catch the token that is returned from Facebook on the server-side before it gets to the client (it can be a simple PHP script that parses the URL token parameter). Next, store it in the DB on the server, and when the client queries the server, I can do the comparison.

View 2 Replies

Flash :: Token-Based Authentication In WCF?

Dec 7, 2009

I am creating a website which will contain both ASP.NET pages and a Flash applet.I want to encapsulate my business logic in a WCF service which will be exposed through two endpoints: One accesssible over the Internet through HTTP(S), for use by the Flash client, and one accessible within the data center for use by the application servers.If this does not seem like a good approach, then stop me here; otherwise, I'll move on...

The question is how to authenticate requests coming from the Flash client. Since I don't want to store the user's password in a browser cookie, don't want to send the password with every request, and don't want to have to use HTTPS after the initial login, I plan on using a token-based authentication system. I also don't want the user to have to log into the Flash client after already logging into the site itself, so I plan on using Javascript to pass the token to the Flash client when it starts.

I know WCF supports using the .NET Framework's built-in security framework (System.Security) to enforce access control, and I would like to take advantage of this.The question, then, is: How do I pass the token to the WCF service when it is called by Flash, and how do I process the token on the server? WCF has an "issued token" authentication mode, but it appears this is intended to be used in a full-blown federation scenario with a Secure Token Service and SAML tokens--a bit more complexity that I really want. It is possible to use this mode with my own "simple random-string" tokens? If so, how? Keep in mind this needs to be compatible with Flash.I could potentially pass the token in a header (either a SOAP header or an HTTP header). In this case, once I've determined which user is making the request, how do I inform the framework so that the System.Security checks will work?Is there a different approach altogether that I should consider?Anything that avoids sending passwords in every request, lets me use System.Security, and works with Flash is a possibility.

View 1 Replies

Flex :: Implement The Authentication In Portlets

Jun 4, 2010

I want to have flex portlets side by side with JSP portlets. How can we implement the authentication mechanism? [ Authentication will be handled by the portal and how can we share the same session with flex portlets ]

View 1 Replies

Flex :: SSO / Authentication Between Joomla And Application

Sep 17, 2010

I am developing an application in Adobe Flex. This application is to be hosted on a Joomla Website. I want to achieve Single Sign On between my Joomla website and this Flex Application. The Users log in using the default Joomla Mechanisms however I want the username as well as some other details about the user inside my Flex Application.

View 1 Replies

Flash - Cakephp Authentication Cookie?

Dec 12, 2010

i have a flash application connected with a script on a remote server(X)different from the server hosting the website(Y)the application on server X needs to get some user information so i need to identify the user by what i have in the cookie

remote server X will get those informations from server Y is there any way i can get the user name or user id from the CAKEPHP cookie var?the authentication is the one found on cakephp website

[flash]----request---->[server X]----request---->[server Y]----response---->[server Y]...

View 1 Replies

Java :: Spring Authentication From A Flex App?

Feb 4, 2011

Some background: I have a Flex app embedded in an HTML page and am using Flex to send a soap request to my Java backend that does some authentication depending on the username and password entered in the Flex form. If I enter the correct login everything works fine and the Flex app can continue making further requests. But with an incorrect username/password, an "Authentication Required" dialog box pops up in my Browser and my Flex app won't respond with its proper handler until I click cancel. I'd like to get rid of the dialog box somehow,

View 2 Replies

Flex :: OSMF With Basic Authentication?

Jul 24, 2011

How would one create a video or audio stream using OSMF when there must be basic authentication on the url?Can one feed in Audio/Video using HTTPService to provide the header authentication?

View 2 Replies

Php :: IIS 7 Authentication For Flash Related Files?

Apr 2, 2012

What I would like to do is to use ASP.NET impersonation to authenticate a Flash app as a user in IIS so that the file dependencies related to the flash file ( XML config files, and PHP API calls ) are not anonymously accessible when users try to access them directly through the URL. So, instead of displaying the contents of an XML config file, it should tell the unauthenticated user they do not have permission to view the file.

Is this possible? Right now I'm looking into request headers and the settings in IIS for authentication.

So I found out how to use Basic Authentication through help posted here. The problem I'm running into is that even though the flash app sends the appropriate request. Which is handled fine in FF, Chrome, and Safari. It still displays the login pop-up box for Opera and IE. Does anyone know why IE and Opera behave differently with Basic Authentication?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved