Hopefully there’s a simple answer to this…
I’ve only been using SuperContainer for a few months, and I’ve got our solution working pretty well, but I’m having problems with the security features.
(Everything works fine if security isn’t turned on, and I’m running 2.77 on the server and as a plugin)
For the following examples, assume I’ve activated the security on the server, with the username ‘name’ and the password ‘pw’.
I’ve got a script that sets the base URL on startup, trying to include the username and password as follows:
Set Variable [$result; Value: SCSetBaseURL ("http://name:pw@server.org:8020/SuperContainer/Files")
OR
Set Variable [$result; Value: SCSetBaseURL( "http://server.org:8020/SuperContainer/Files"; "name" ; "pw")
Neither generates an error, but they also doesn’t seem to help me (i.e. – with security activated, SuperContainer portals return errors, and no plugin functions work)
So, to get around this, for all my portals I’ve included the username and password in the URL, adding the following to the very end:
& "&username=name&password=pw"
This works for all the portals.
But I can’t figure out a way to include the username and password when using functions in scripts.
For instance, I’ve tried the following function in a script:
SCGetInfo( "/Photos/" & Photos::Photo_ID & "?username=name&password=pw" )
This doesn’t work. In the SuperContainer server log, it acknowledges the user name, but complains that the password is wrong (even though it’s correct).
I’ve tried creating a URL with the same formatting and it works fine in a browser, so I know the username and password are valid, but I can’t figure out how to get the function to work in a script.
I’m sure I’m missing something obvious, but the online documentation is a little sparse for the security features.
Any help or examples would be appreciated. If there’s a way to log in for the entire session, that would be great, but I don’t mind coding all my scripts with the security info if necessary. I'm just not sure of the correct syntax.
Thanks so much!
-Neil