cancel
Showing results for 
Search instead for 
Did you mean: 

Password at service level.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi All,

Thankyou for your reply,

I will check and reply soon.

Regards,

Sanjyoti.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi sanjyoti lengare,

if u done the above steps. definitly it will work....

After deploying are you able to see the output???

before u seeing the output system will ask the username and password!!!

Regards,

P.Manivannan

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi Alka,

Thankyou so much for your reply.

Please guide me what should i check and do?? what i want, is that in my portal when i click on the particular application before i enter the application i should be asked for ID and Password.

Please help,

Regards,

Sanjyoti.

Former Member
0 Kudos

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