Hi,

I would like to implement a function to allow all user to share 1 common account for authenticating. That mean a user will have a token, storing his information such as Full Name, Email Address, etc. and he will use this token to login with the common account

IUser user = Ivy.session().getSecurityContext().findUser(COMMON_ACCOUNT);

To specify the information of logon user, I will use information from token.

user.setFullName(token.getFullName());
user.setEmailAddress(token.getEmailAddress());

I only want these information temporary store in the session, and would be wiped out after user logout. But, by calling these IUser APIs, these information are persisted to system. Is there any good way to do that? Thanks

asked 25.04.2017 at 23:47

thienqh's gravatar image

thienqh
(suspended)
accept rate: 0%

Since you didn't mentioned anything regarding authentication, how about creating a new IUser everytime?

(26.04.2017 at 20:09) Genzer Hawker Genzer%20Hawker's gravatar image
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×16

Asked: 25.04.2017 at 23:47

Seen: 1,666 times

Last updated: 26.04.2017 at 20:09