on 03-11-2008 12:25 PM
hi Experts,
I want to ask user his user id and password at service level,
ie if he opens a particular service he should be asked for user id and password. Is this possible ????
Is there any standard functionality that can be used for this purpose ???
Please help.
Points would be awarded to helpful answers.
Regards,
Sanjyoti.
Hi Sanjyoti,
Here is the code
IWDUser wdUser = WDClientUser.getCurrentUser();
user = wdUser.getSAPUser();
if (user != null)
{
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
{
b = acct[0].checkPassword(password);
}
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sanjyoti lengare ,
Go to your project then expand your project
1.Go to your application(already u created). double click the application
2. go to the tab application tab
3.click NEW
4. select the checkbox predefined
5. click browse choose the Authentication
6. select the value dropdown is true
after deploy your application.. System will ask Username and password.
that's it
Regards,
P.Manivannan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I tried the above procedure, i dont get any prompt for UserID and Password ????
After making the settings i deployed the application and when i login to the portal and open the application, it opens directly without asking for any ID or password. How does it work ??
Please help.
Regards,
Sanjyoti.
Hi Sanjyoti,
You are viewing the application thru Portal.
If you execute it in standalone, you will see the prompt for username and password.
Also, for viewing the application thru Portal, some Single Sign On (SSO) must have been implemented, which logs in on the user behalf. Check it out.
Regards,
Alka.
Hi,
Set the authentication property for your application
Go to the application properties
New->Predefined
Select Authentication(sap.authentication) set it to true
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.