Creating Cookies or Variables for Authentication
Hope someone can help on this!
I have been charged with revamping the online presence for a
magazine. Aside from the public access for the site, there also
will be pages that require subscription. This gateway, as well as
registration, is handled by our subscription service, then the user
is referred back to the exclusive content. While this works fine,
any savvy individual can get around this if they know the URL of a
specific page. My contact at the subscription service recommended a
cookie or other variable that refers users back to the logon page.
How difficult is this to do within DW, and what is required?
Thanks!
My question is: is this the best way to authenticatThere is no best way. The first question to answer is how do you want to maintain the account information, i.e., usernames, passwords, etc.? You can use your own tables, an LDAP directory, a Single Sign-On facility (which would include an LDAP directory), database schema accounts, or you can use the APEX developer/end user accounts.
Scott
Similar Messages
-
Unable to create SASL client connection for authentication mechanism [PLAIN
I have problem to use dscc to admin my ds/dps servers, since I the dscc can't contact dscc agent. Though the agent is running on the default port number with network-bind-port of 0.0.0.0, there is nothing I can do to fix it.
I debug the problem, and found following errors in server.log under dscc (deployed on SUN AS 8.2):
Message: Unable to create SASL client connection for authentication mechanism [PLAIN]|#]
[#|2007-08-21T15:28:40.252-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.jmx.remote.opt.security.SASLClientHandler.initialize(SASLClientHandler.java:124)|#]
[#|2007-08-21T15:28:40.253-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.jmx.remote.opt.security.AdminClient.connectionOpen(AdminClient.java:131)|#]
[#|2007-08-21T15:28:40.254-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl.connect(ClientSynchroMessageConnectionImpl.java:71)|#]
[#|2007-08-21T15:28:40.256-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | javax.management.remote.generic.GenericConnector.connect(GenericConnector.java:177)|#]
[#|2007-08-21T15:28:40.257-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | javax.management.remote.jmxmp.JMXMPConnector.connect(JMXMPConnector.java:119)|#]
[#|2007-08-21T15:28:40.258-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)|#]
[#|2007-08-21T15:28:40.260-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.directory.nquickclient.NquickClient.getJmxConnector(NquickClient.java:816)|#]
[#|2007-08-21T15:28:40.261-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.directory.nquickclient.NquickClient.getConnector(NquickClient.java:519)|#]
[#|2007-08-21T15:28:40.262-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.directory.nquickclient.NquickClient.getConnectorSystemAuthentication(NquickClient.java:314)|#]
[#|2007-08-21T15:28:40.263-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.directory.dcc.core.NquickPool.getSyncServerMBean(NquickPool.java:435)|#]
[#|2007-08-21T15:28:40.264-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | com.sun.directory.dcc.core.NquickPool$1.run(NquickPool.java:320)|#]
[#|2007-08-21T15:28:40.271-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.admin.directory.dcc.util.ViewBeanUtils:appendDebugLine | java.lang.Thread.run(Thread.java:534)|#]
[#|2007-08-21T15:28:40.289-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.ui.taglib.pagetitle.CCPageTitleTag:appendPageTitleAlertAndText | Node has no attributes.|#]
[#|2007-08-21T15:28:40.293-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.ui.taglib.pagetitle.CCPageTitleTag:appendPageActions | Could not obtain pageactions element.|#]
[#|2007-08-21T15:28:40.295-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=11;|
15:28:40 | httpWorkerThread-8080-0 | com.sun.web.ui.taglib.pagetitle.CCPageTitleTag:appendPageViewsMenu | Could not obtain pageviews element.|#]
Please help if you could figure out what's going on. Thanks!Bug ID: 6551672
Synopsis: SunAS claims "Unable to create SASL client conn for auth mechanism" and do not talk to Cacao
Work Around:
Work arround:
Change the JVM of used by App Server.
Edit the file:
/usr/appserver/config/asenv.conf
and replace
AS_JAVA="/usr/j2se"
by
AS_JAVA="/usr/java"
Then restart your AS domain. -
How to create a custom variable for a Label?
i need my label to store a string variable in it, do you know i can create a custom variable for it.
i mean for example if it's name is "StoredString" i can access it in my code by "label1.StoredString" just like "Label1.text" or something like that.Thanks for pvdg42's help.
Hi soorena12,
Based on your issue, I suggest you can try the pvdg42's suggestion check your issue in your side.
If it still could not help you solve this issue, I suggest you can tell me which kind of application you create the label in the VS IDE?
What language you use to create for your application?
If you have any update message about your issue, please tell us.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to create a 0FISCPER variable for [last period of current year]
Hello,
Can anybody tell me how to create a (exit) variable for the last period of the current year, based on 0FISCPER ?
Based on a single value, user entry variable based on 0FISCPER.
I did not find any standard (business content) variables for this.
Can anybody tell me whether the following alternative works:
variable 0P_BA102 (last period pervious year) with offset of +12
Kind regards.Hi,
It should work.
You can refer to the following link:
http://help.sap.com/saphelp_sm32/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
Regards,
Amit -
How to Create a selection variable for Fiscal period/year range
How to Create a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.
Hi Priya,
Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
Bye
Dinesh -
How do I create an automator variable for a path that includes a date?
I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type. For example, I have
~/Documents/archives/2011
/Misc
/Utilities
and
~/Documents/archives/2012
/Misc
/Utilities
for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities. I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder. For example,
What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc. I see variables for Home, Documents, and Current Year. However, when I try to create a new path variable it only lets me choose a full path to a Finder folder. How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?Well now, you went and made me learn something today. In the Variables Library, under Utilities, is a variable named AppleScript. You can put a small script into this that evaluates to your path, for example:
((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action. -
Report Painter using user exit U002 to create a formel variable for FI-SL
Hi,
I would like to use Report painter creating a formel variable with U002(VAR1,VAR2) for FI-SL and did following:
1. go to TCode: GS11
2. Formel: selecting U002 from Formel-Exit list and giving var1 and var2
'#U002(VAR1, VAR2)'
3. Save
4. Erro message: U002 is not definiert.
Why???
U002 is already implementiert in
Class ZCL_IM_FI_FORMULA_EXIT
method IF_EX_G_SET_FORMULA_EXIT~EVALUATE
CASE flt_val.
WHEN 'U002'
Could anyone help me? Thanks!
Klara Zhaodollyb wrote:
if enter 05.2008
the volume should look like below as a vairable range.
sales volume
01.2008 - 05.2008
you want 01.2008 - 05.2008 as description , thats what your requirement right?
When 'ZTEXT2'.
DATA: ZYEAR(4) TYPE C,
ZTEMP1(6) TYPE C,
ZLOW(14) TYPE C.
if i_step = 2.
CLEAR L_S_RANGE.
Loop at i_t_var_range into intern_range where VNAM = 'user entered variable for calmonth'.
*lets say user entered 05.2008
ZTEMP1 = INTERN_RANGE-LOW.
* now ZTEMP1 has 05.2008
ZYEAR = ZTEMP1+0(4)
* zyear = 2008
*A SLIGHT MODIFICATION TO CONCATENATION
CONCATENATE '01' ' .' ZYEAR '-' ZTEMP1 INTO ZLOW.
*SO 01. 2008 -05.2008 WILL BEN IN ZLOW
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = ZLOW.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP
ENDIF.
use the text variable as description then u will get the required result i.e &ztext2&
HERE I DIDN'T written any L_S_RAnGE-HIGH.
Regards,
Ranganath
Edited by: Ranganath on Nov 9, 2011 9:41 AM -
How to create a text variable for Calender Yr/Month depending on the prompt for calendar year
Hi everyone
Please assist on this issue:
i have created a Bex report that has an offset for 12 months from the current calender month, i tried to use text variables to replace the calender months but i just learned now text variables from Bex dont work in BO, so I would like to create a prompt in BO to enter Calendar Year and then based on the input(Calender Year) the Webi report must display a 12 months for that Year.
Please also indicate where exactly i have to click in order to get that "Helpful icon " when the my issues have been resolved, because i searched it and havent seen it anywhere on the communications
Thanks in Advance
OleHi Gill
In BO I recieve my all months for existing data and when i create a prompt for Calender Year the months in the report still has those text varibale for exampl if i enter 2011 on the prompt the text remains for the year that was already there wen i created my text variable... so its not dynamic.....
So if i have text variables in Bex it will display like this in Webi in which it wont change if i put in 2011 as input for the prompt... -
How to Create a Selection Variable for restricting the querry output
Hi Gurus,
I have created a query in query designer on a Multiprovider and the output of the query is a Formula in a structure which calculates a % value, the client is looking for entering a range of number during the query selection screen and the output should be restricted to the given selection values.
Can any one tell me how i should create a selection variable that would take the input from the user during the query selection screen and then restrict the output to that value which user specified.
Is there a need to write any customer exit or is there any alternative way to make the query work as the requirement is.
I hope this explains my problem but if any questions please let me know so that i can give u specific information.
Thanks,
Nisha.Hi Nisha,
Firstly, in order to restrict the query output by a key figure value, you will need to create a condition on that key figure. This is done in the query deisgner. Now when you are creating the condition you can also use user entry variables (formula variables with user entry) to let the users enter the value that they want to see.
See here for more details:
http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/content.htm
Hope this helps... -
DIAdem create an user variable for Report
Hi,
I know that i can display in a DIAdem report some pre-defined DIAdem vairiable (such as CurrDate) using @@Variable@@.
I would like to create a DIAdem user variable (from a DIAdem script) to be used in DIAdem report.
1) I have created a variable in my script
Dim myvariable
myvariable = "hello"
2) I have run the scirpt
3) I have put @@myvariable@@ in a Text
But a error message appears : Variable is undefined : 'myvariable'
How could a create a user varaible to be displayed in my report?
Thank
Solved!
Go to Solution.Hi malexman,
The other option is to create a global variable from a normal (non-user-command) VBScript. There are several ways to do this, but the one we instruct new users to implement is the "GlobalDim" command, like this:
GlobalDim "UserVariable"
UserVariable = "hello"
You will notice that after this short VBScript runs the "UserVariable" changes color to show that it has become a global variable-- at that point you can use it in REPORT (and everywhere else in DIAdem, thus the name "global" variable).
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Creating a global variable for a counter.
All,
we have the following scenario - we are getting a flat file into XI. The file is converted into an xml message (<source> message) in content conversion with the records/message setting as 1000. So, the input file is split into messages with 1000 records/each. (except for the last one).
Now - we map these messages into another message (<sourceIdx> message) to add a counter node to the record structure (rest of the structure is the exact same). The question is we need to maintain the counter across the messages.
Meaning - if there are 100 <source> messages that are mapped to 100 <sourceIdx> messages. The first record in the first message will have the counter as 1 and the last one as 1000. we want the first record in the second message to start at 1001 and not 1 again.
How can we do this? Also - is there a way - where you can add this counter during the content conversion itself. That will save us this mapping.
Thanks,It might be possible to use a java pointer and point it at a reserved memory location in the XI box, then just modify and call this pointer in a UDF. Another possibility is to write a file with your number directly from the UDF to a place on the XI box and just call and modify this file with the UDF. I don't know if the second would actually work, but those are the non-XI involved way of doing it.
Another option would be to explore using a BPM that would have your variable in it. -
Can i Create Output Variable for DB Polling in BPEL 11g?
Hi Team,
I want to create the Output Variable for DB Polling,But when i double click on Reply Activity-->Create New Variable it is giving error message like "Can't Create output variable.The Selected operation doesn't have an Output Message".
My Question is Can we create Output Variable for DB Polling, if Yes tell me the procedure to create the Output variable ?
Regards,
KiranHi Kiran,
In these scenario generally runtime faults occurs so you can use the CatchAll activity and rethrow activity to complete the instance in error state. Also before the completion of the process if exception occurs you can rollback all the transaction.
or
you can use the Fault handling framework:
Using Fault Handling in a BPEL Process - 11g Release 1 (11.1.1.7)
Regards,
Anshul -
Can we create range variable for Query Key Date
Hello Gurus,
Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
so, Please let me know if we can use Range variables for Query Key Date ??
Thanks in advance,
Regards,
AarthiHi Aarthi,
This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
The default key date value is the date on which the query is executed, that is <Today>.
Hope this helps... -
Create New Variable for COPA Drilldown Reports in KE3E
Hi,
How can we create a formula variable for COPA Drill down reports in KE3E? In standard global variables formula variable is not avaiable, I need to create a formula variables like ...from period, to period, last fiscal year and next fiscal year..
While creating report in KE31/KE35 trying create local variables, but it doesn't.
Can any body advise how can we create a new variables for "from period, to period, last fiscal year and next fiscal year.."
Thanks
VS RaoHi Rao
For Period (From &To)
1. KE3E
2. Type of Var = Char Value
Enter variable name, say, ZPERIOD
Field Name = PERDE
Replacement type = Entry
Enter Description
Parameter/selectop = Selection Option
For Fiscal Year
Type of Var = Char Value
Enter variable name, say, ZGJAHR
Field Name = GJAHR
Replacement type = Entry
Enter Description
Parameter/selectop = Parameter
For Next and Last Fiscal Year
When you define your form in KE34/KE35
Use the variable ZGJAHR in your report
In the column for Next Year, Enter "ZGJAHR+1" as the local variable for GJAHR
In the Column for Last year, Enter "ZGJAHR-1" as the local variable for GJAHR
Regards
Ajay M -
What's the best way to create and free temporaries for CLOB parameters?
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production on Solaris
I have a procedure calling another procedure with one of the parameters being an IN OUT NOCOPY CLOB.
I create the temporary CLOB in proc_A, do the call to proc_B and then free the temporary again.
In proc_B I create a REFCURSOR, and use that with dbms_xmlgen to create XML.
So the code basically looks like
CREATE OR REPLACE PROCEDURE client_xml( p_client_id IN NUMBER
,p_clob IN OUT NOCOPY CLOB ) AS
v_rc SYS_REFCURSOR;
v_queryCtx dbms_xmlquery.ctxType;
BEGIN
OPEN c_rc FOR
SELECT col1
,col2
,col3
FROM clients
WHERE client_id = p_client_id;
v_queryCtx := dbms_xmlgen.newContext(v_rc);
p_clob := dbms_xmlgen.getXML(v_queryCtx, 0);
END;
CREATE OR REPLACE PROCEDURE my_proc AS
v_clob CLOB;
v_client_id NUMBER;
BEGIN
v_client_id := 123456;
dbms_lob.createTemporary(v_clob, TRUE, dbms_lob.CALL);
client_xml( p_client_id => v_client_id
,p_clob => v_clob);
dbms_lob.freeTemporary(v_clob);
END;However, I just learned the hard way that IN OUT NOCOPY is only a hint, and that Oracle sometimes creates a local variable for the CLOB anyway.
A solution is to change the client_xml procedure above to
CREATE OR REPLACE PROCEDURE client_xml( p_client_id IN NUMBER
,p_clob IN OUT NOCOPY CLOB ) AS
v_rc SYS_REFCURSOR;
v_queryCtx dbms_xmlquery.ctxType;
BEGIN
IF NOT NVL(dbms_lob.istemporary(p_clob),0) = 1 THEN
dbms_lob.createTemporary(p_clob, TRUE, dbms_lob.CALL);
END IF;
OPEN c_rc FOR
SELECT col1
,col2
,col3
FROM clients
WHERE client_id = p_client_id;
v_queryCtx := dbms_xmlgen.newContext(p_refcursor);
p_clob := dbms_xmlgen.getXML(v_queryCtx, 0);
END;My concern is that in case Oracle does create a local variable, 2 temporaries will be created, but there will only be 1 freeTemporary.
Could this lead to a memory leak?
Or should I be safe with the solution above because I'm using dbms_lob.CALL?
Thanks,
Arnold
Edited by: Arnold vK on Jan 24, 2012 11:52 AMArnold vK wrote:
However, I just learned the hard way that IN OUT NOCOPY is only a hint, and that Oracle sometimes creates a local variable for the CLOB anyway.A CLOB variable in called a locator. Just another term for a pointer.
A CLOB does not exist in local stack space. The variable itself can be TBs in size (max CLOB size is 128TB depending on DB config) - and impossible to create and maintain in the stack. Thus it does not exist in the stack - and is why the PL/SQL CLOB variable is called a locator as it only contains the pointer/address of the CLOB.
The CLOB itself exists in the database's temporary tablespace - and temporary LOB resource footprint in the database can be viewed via the v$temporary_lobs virtual performance view.
Passing a CLOB pointer by reference (pointer to a pointer) does not make any sense (as would be the case if the NOCOPY clause was honoured by PL/SQL for a CLOB parameter). It is passed by value instead.
So when you call a procedure and pass it a CLOB locator, that procedure will be dereferencing that pointer (via DBMS_LOB for example) in order to access its contents.
Quote from Oracle® Database SecureFiles and Large Objects Developer's Guide
>
A LOB instance has a locator and a value. The LOB locator is a reference to where the LOB value is physically stored. The LOB value is the data stored in the LOB.
When you use a LOB in an operation such as passing a LOB as a parameter, you are actually passing a LOB locator. For the most part, you can work with a LOB instance in your application without being concerned with the semantics of LOB locators. There is no requirement to dereference LOB locators, as is required with pointers in some programming languages.
>
The thing to guard against is not freeing CLOBs - the age old issue of not freeing pointers and releasing malloc'ed memory when done. In PL/SQL, there is fairly tight resource protection with the PL/SQL engine automatically releasing local resources when those go out of scope. But a CLOB (like a ref cursor) is not really a local resource. And as in most other programming language, the explicit release/freeing of such a resource is recommended.
Maybe you are looking for
-
I am having difficulty in accessing secure sites with Firefox v6.0.2 operating in Windows 7. I get the error message "Secure Connection Failed." SSL received a record with an incorrect Message Authentication Code. Error code: ssl_error_bad_mac_read.
-
Need some suggestion doing database backup
Hi All, I am working on the 11gR2 RAC oracle database and below are the details. SQL>select * from gv$version; INST_ID BANNER 2 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production 2 PL/SQL Release 11.2.0.1.0 - Production 2 CO
-
IWeb 08 Published Photo Links Not Working
Hello, I've recently switched over to iWeb 08 and really dig all the new functions. I am running into one spot of trouble and hope that someone might shed some light on it for me. I've got a few images that I use as hyperlinks rather than text. The h
-
Using my laptop to watch TV from a satalite receiver
Can i use the eyetv hybrid to watch satalite tv on my new macbook?
-
Open PCUI new application in Maximize mode
Hi all, Is there a way to open the PCUI application in Maximize mode. Means the result should display 20-25 lines. The new application which we developed internally, have only one result list and would like to include more line items than 5 at presen