Single use token

Is single use token(for widgets) only valid for one single JAM request? In this case the widget is embedded in a portal web page. If user moves betwwen pages and lands back on the feed widget page, does the page need to get a new single use token before the widget can be shown?
How does JAM determine which users resources are shown to the client that uses the single use token?

Sorry for the delayed reply. We had a long weekend here at my development site.
The single use token is used to create a user web session. Once the session is created you don't need any more tokens. But yes they are only valid for one request.
How does JAM determine which users resources are shown to the client that uses the single use token?
You get the token by making an API. Every API call has a user context/authorization. The token will be used to create a web session for the authenticated API user at the time of the creation of the token.
On this last point, I'm going to ask that the documentation be updated to be a little more informative on the context of the single use token session that is created.  Thanks.
SAP Jam Developer Guide

Similar Messages

  • How can I tell if my software licence is a Family Pack or Single use?

    I need to work out which licence I have as my daughter has a Mac Book.  Her school provided her with iWork but take it off when she leaves in a month or so.  If I have the Family Pack I can load Pages, Keynote etc, but not if I only have Single use.

    If you still have the box or electronic receipt you could call your closest Apple Store and give them the serial # or model # and they can check it. Do you remember what you paid? Also, there are no longer any Family Packs with Lion, but I see your sig says Snow Leopard.

  • How to Append two  word documents into single  using   java

    How to Append two word documents into single using java
    we tried this but it's not append the one word document to other
    source code:public class AppendTwoWordFiles {
         public static void main(String []arg)throws IOException
              FileInputStream fi=null;
              FileOutputStream fo=null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                   File f1=new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2=new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2,true);
                   byte b[]=new byte[2];
                   while((fi.read(b))!=-1);
              fo.write(b);
    System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally{
              fi.close();
              fo.close();
    plz reply me quickly ,,,what can i follow

    Use this code ..
    and give the path of the both file like this.....
    source file ---- C:/workspace/Practice/src/com/moksha/ws/test/practice.text
    destination file ---- C:/workspace/City/src/com/moksha/ws/test/practice1.text
    import java.io.*;
    public class AppendTwoWordFiles {
         public static void main(String[] arg) throws IOException {
              FileInputStream fi = null;
              FileOutputStream fo = null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br = new BufferedReader(new InputStreamReader(
                             System.in));
                   File f1 = new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2 = new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2, true);
                   byte b[] = new byte[2];
                   int len = 0;
                   while ((len = fi.read(b)) > 0) {
                        fo.write(b, 0, len);
                   System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   fi.close();
                   fo.close();
    }

  • Can Single Use License be installed on both desktop and labtop

    Hi,
    I purchased a single use lincese Leopard OS 10.5 last year to upgrade my Mac desktop. I also have an iBook with 10.3.9 (Panther)that I haven't used for years. Recently I tried upgrading my ibook to 10.5 but the disc kept running and running for hours without installing anything. All I see was a bright white screen with a running circle in the middle. Is single use upgrade disc only good for one upgrade?
    my iBook has 1.33 GHz, PowerPC G4, 256 built-in
    Please help, thank you.

    SRQP
    Welcome to Apple Discussions.
    Is single use upgrade disc only good for one upgrade?
    The Apple Software License Agreement allows you to use an installer to install to one computer. So long as the software is installed on one computer it may not legally be installed on a second computer.
    cornelius

  • How to use tokens in workflows(ocm)

    i want to know how to use tokens in workflows .

    What do you want to know?
    Tokens are variables that eventually map to either individual user names or aliases (groups of users).
    The token is defined and then included in the workflow step in addition to or in place of a user or alias.
    A token is a piece of idoc script that ends like this <$wfAddUser("Name", "type")$>. Name, like i mentioned above, is a user name or an alias name. Type is a string identifier; either "user" or "alias".
    Because it's Idoc Script, the token can evaluate anything available in the databinder as well as execute other functions.
    A very easy way of using tokens is to map a metadata field that you know will contain a user name to the "Name" parameter. The dDocAuthor field will always contain a user name. So the token might look like this: <$wfAddUser(dDocAuthor, "user")$>. When set as a workflow user, this token will route the item to the person listed as the author.
    Because tokens are evaluated in workflow after the entry event (read the docco if you don't know what step events are), you can do some complex caluclations in the entry event and then pull the results into the token. For example, you might want to auto-escalate workflow content to my manger. If we presume that my manager's user name is part of my user profile, (say in a user metadata field called uManager), we can figure out who my manager is in the entry event, set my managers name into the companion file (read the docco if you don't know what this is), then pull it out in the token when the token is evaluated.
    this might look something like:
    --- ENTRY EVENT CODE ---
    <$me=dUser$> <!-- this sets the current user to the idoc variable "me"-->
    <$myManager=getValueForSpecifiedUser(me,'uManager')$> <!--this grabs the value of the uManager field for me-->
    <$wfSet("manager", myManager)$><!--this creates a variable in the companion file called "manager" and sets its value to the value of the myManager variable-->
    ----Token Code---
    <$wfAddUser(wfGet("manager"),"user")$> <!--this pulls the value of the "manager" variable out of the companion file and sets it as the token user.-->
    This is only the tip of the iceberg. One token can have multiple <$wfAddUser...$> declarations. They can be conditional: <$if ..some condition$><$wfAddUser...$><$else$><$wfAddUser...$><$endif$>
    Check out the workflow reference guide that is in the documentation library for more ideas.

  • OIM single use password loop

    We are provisioning users in Sun JDS LDAP using OIM 11g. We have an issue when a user changes their password in OIM. I wonder if anyone has any suggestions of how to fix it as I can't believe that we're the only ones to come across it?
    If the user changes their password in OIM the code that our consultant has written will push that password change down to LDAP. There is a password policy in LDAP that states that if the password was changed by an administrator, not the user themselves, then the password is single use and needs to be changed. This causes our (home grown) login code to redirect the user back to OIM to change their password and so end up in a loop they cannot get out of.
    We talked to the LDAP admin team about changing the policy but they don't want to do that as it's a security risk (admin remembers the password he assigned to the user ...).
    Is this normal? Any workarounds?
    Would this work differently when we move to OAM?

    I would have done it in this way: Assuming you have decent knowledge of using existing components of OOTB connector for re-usability. Also I have never tried this, its just an approach which could possibly work.
    - The only way for an end user to change its own password in OIM is via self-service which means the tcUtilityFactory would be instantiated by the user itself. If that is the case then you can obtain the User ID in the pre-insert entity adapters/plugin. Now when the password reset operation is being done, you can check the User ID of the Logged In user and the Target User and take a decision whether it was the user itself or some other admin.
    - If it was some other admin then you can set the Force Password Change at next Logon check-box in the User Profile to true.
    - Now modify the Change User Password task to use the IT Resource connection credentials if that check box is selected to create a connection OR use the credentials form the Process Form if that check box is not selected.
    This way the connection to the LDAP would be done via the user itself if it was a self-service password reset and your LDAP Policy would have no complaints.
    Assumption The user has the permissions to establish a JNDI connection with SDS and modify its own account which I am sure would be there.
    Thanks
    SRS

  • CS3 Master Suite single use - How do I uninstall or upgrade the unsecure version of Acrobat without compromising the rest of the software?

    I have CS3 Master Suite single use software, which serves me well. If I uninstall CS3 then I will be prohibited from using all CS3 products going forward. Thus far I have ignored the security vulnerability of Acrobat, but i"m growing concerned that I might get hacked. Is there a way to upgrade just Acrobat, or to uninstall it so that the security vulnerability no longer exist?

    yes, just sign in to your cc desktop app using the same adobe id used to subscribe to cc.

  • Can Single Use standard BADI be converted to Multiple Use

    Is it possible to make standard BADI a Multiple Use when it is single use?
    I hope it is not.
    Please confirm.
    Thanks,
    Arshad

    Hello Arshad
    If a BAdI is defined as single-use (SE18) then you can have only a single active implementation within the system. Thus, the answer to your question is: No, it is not possible.
    However, there may be the reverse situation where you have a BAdI defined as single-use but would like to have multiple implementations. In this case you have to adjust the single active implementation and instantiate other implementations if certain conditions are fulfilled, e.g.:
    <b>Active</b> implementation of a BAdI should be: ZCL_MY_BADIIMPL_01
    You create a second implementation (<b>not active</b>): ZCL_MY_BADIIMPL_02
    Within the methods of ZCL_MY_BADIIMPL_01 you could code:
      DATA:
        lo_badi2    TYPE REF TO <BAdI interface>.
      IF ( <condition is fulfilled> ).
        CREATE OBJECT lo_badi2 TYPE ('ZCL_MY_BADIIMPL_02').
    *   Call methods of second BAdI implementation
      ENDIF.
    Regards
      Uwe

  • Single use credit card

    Skype says that they will preauthorize my credit card to check its validity. Since I use a single use virtual credit card, it can't then be used for an actual subsequent charge. How can I get Skype not to invalidate the credit card?

    Please do not double post.

  • Ques on Single use Badi

    Hi Frds,
    I search a lot but could not found much except defination of Singel Use Badi.
    Few Ques i have, Please share you though.
    Example : Calculating Net value in Badi.
    1) After the single use BAdi called, can we change this value at run rime.
    2)  Name few single use BAdi in SAP CRM.
    3) Some of the example/requirement where single use Badi used.
    Thanks
    Imran

    Hi Deva,
    It is up to functional requirements. In multiple use BADI you can implement a BADI many times depending on filter value. Think the scenario you are workin in an international company and there is a requirement to calculate tax for each country and there is a BADI. If country key is defined as filter value you can implement same BADI for each different country and differemt implementation will run in all different countries.
    But as you can see it is not always necessary. Functionally you may not need to implement your BADI more than one times. It can be enough to use only one implementation.
    Regards,

  • Single use licence...upgrade to multi user..?

    My wife unexpectedly bought me a new imac for christmas...yippeeee..!!! the problem is it came with leopard (on disk, not pre-installed)..which was great, but I want to upgrade my other 2 macs (imacG5, ibookG4) to leopard, how do I do this, do I need to buy a family pack (£129) or can I just pay the difference from single user to family (£44)...or can I just install it on them anyway....?
    thanks in anticipation
    Chris

    Hi Diane Williams-
    Lucky!
    That copy of Leopard is for that machine.
    I do not know how Apple would go about handling that specific licensing question. The simple answer would be to tell you to buy the family pack.
    As far as purchasing a specific license that would allow you to use that physical Leopard disk to install on your other machines that sounds like a question for Apple. Perhaps contacting them will be helpful: Contacting Apple for Support and Service
    Luck-
    -DaddyPaycheck

  • When using tokens in workflows, notify is not working

    I have created a token to add the business manager. <$wfAddUser(xvg_busconname, "user")$>
    With this, I now am thinking that whatever username is in the custom metadata fields vg_busconname will be used for my notification.
    Next, I create a workflow that makes use of this token. In the first step I add this token as a user.
    When the workflow is activated, the notification does not take place.
    If, in the same step, I remove the token, and add in an alias, that contains a user, the user is notified.
    Since this needs to work dynamically, I can not see being able to use an alias, because I do not know which user will be placed in the metadata field vg_busconname.
    I am not sure why the workflow is not working when I try to use a token instead of an alias. Am I missing something simple?
    Thanks!

    I am not sure what I did exactly to resolve this, but it is all working great now so please disregard my previous posting on this

  • String comparision using tokens (challenging question)

    Hello, everyone.
    i am having a problem with string comparision.
    for example, the input file is:
    each line is an input line (string)
    1)a x
    2)b c x
    3)a b x
    4)a b y
    5)a b c x
    in above example a,b,c,x,y are strings(tokens)
    in above example
    line 1 ,3,5 has token "a" common and class "x" is also common
    if this condition is satisfied,
    line 1 should be send to general file (output file 1) and
    line 3 and 5 should be send to specific file (output file 2)
    rest of the lines should be send to third file.
    remember in line 4, token "a" is same when compared with line1
    but it has a different class (y) .this line will go the third file. this is where line 3 and 4 differs.
    i have read this file into an string array.
    how to proceed further.
    i am new to java programming.
    cheers in advance.

    Well, first off, I'm assuming that you keep the first string as the first token and the class name as your last token, then you tokenize everything using StringTokenizer. the code would look something like this. You could also use countTokens() to know how many tokens are in a tokenizer.
    My approach would be the following:
    1. Create an array of Strings to hold each line (you already did that)
    2. Go through the array, one line at a time, tokenize the String, figure out the first and last tokens
    3. Write it to the corresponding file.
    The code would be something as follows
    String ClassToLookFor, StringToLookFor; // holds which class and first string to look for
    String firstToken, lastToken; //used in checking each element with first one
    boolean firstFound = false;  // First instance of Class name and first thread combo found
    public static void main(String args[])
    StringTokenizer tokenizer;
    int tokenizerLength;
    // read in array of Strings, store it into lines or something
    int endOfRun = lines.length;
    for (int i = 0; i<endOfRun; i++)
    tokenizer = new StringTokenizer(lines);
    tokenizerLength = tokenizer.countTokens();
    if(!firstFound)
    // store the information (StringToLookFor and ClassToLookFor) and write the line to the corresponding file
    else
    firstToken = tokenizer.next();
    int runThru;
    while(runThru < (tokenizerLength - 2)) {tokenizer.next();} // going to the last token
    lastToken = tokenizer.next();
    if (firstToken.equals(StringToLookFor) && lastToken.equals(ClassToLookFor))
    {write lines[i] to second file}
    else
    {write lines[i] to third file}
    hope that helps ...

  • Please help with using tokens

    Hi, i am writting a program which requires me to break up an inputed string and then then break it up and compare and use the individual words or parts of the string. Is that possible?! i am able to tokenize the string but i would like to know if it possible to then make those tokens into individual strings that i can use again?!?! i am new to this and would really appreciate any help i can get...
    thanks

    hmm... ok i guess i'm probabaly not explaining myself very well coz im still not exactly sure what im doing... right i have this
    StringTokenizer st = new StringTokenizer(text);
    String[] token = new String[st.countTokens90];
    int count = 0;
    while (st.hasMoreTokens()){
    token[count] = st.nextToken();
    count++;
    so it seperates the string into tokens, my question is say the user enters the line Hello my name is Peter
    Is it possible for to then use the individual words in the rest of my program. Assign a name to each like word1, word2, word3 etc... because i then need to use those words to compare them to other words and themselves.
    Did that make any sense?!

  • Access protection using token

    Where I can find some information on how to protect access to my webservice in a way that e-banks do it? To do it I want to use a token. I hope you understand what I mean.

    Where I can find some information on how to protect access to my webservice in a way that e-banks do it? To do it I want to use a token. I hope you understand what I mean.

Maybe you are looking for

  • Using time capsule as a wireless storage drive on MacBook Pro with Tiger

    I'm getting a time capsule 1Tb for xmas, do I just plug it into one of the ethernet ports on my wireless router/modem? What I plan to do is take all my data (itunes files, invoices, pictures etc) off my MacBook Pro (which only has a 150 Gb hard drive

  • I cannot install Itunes 10.5.1

    I am running Windows 7 Professional x64, fully updated. I cannot update Itunes 10.5 to 10.5.1 to get Cloud support. The installer fails and gives me an error message saying "There is a problem with this Windows Installer package. A program required f

  • Acrobat 9 Standard and Windows 7 Compatibility

    We are in the process of planning a migration of company computers to Windows 7 and Office 2010.  We have a large number of Acrobat users with various versions with many using v9, just upgraded last year.  Microsoft's "Windows 7 Compatibility Center"

  • Can you integrate Crystal Reports dynamic charts onto DW?

    Is there a way that I can drag/drop or integrate dynamic/live charts that were built in Crystal Reports into Dreamweaver? I am designing the company website and would like to use Crystal to create our live graphs/charts and then integrate these chart

  • Variable to calculate quarterwise fiscalyear?

    Hi experts, I got a requirement to caluculate the based on fiscal year quarterwise!  In short which is the variable to use based on quarterwise like Q1,Q2,Q3,Q4 it is on 3months wise. I find out this variable as:Current Quarter (Season) for Fiscal Ye