Hi there

is it possible to change the used environment for an user by api? Means we implement some logic in the login process which detects the postfix of a user. If it matches _test we should use the test environment if not we use the default which is set in application configuration.

Thanks for the fish, Sven

asked 08.01.2014 at 09:50

skilchenmann's gravatar image

skilchenmann
(suspended)
accept rate: 33%


if (ivy.session.getSessionUserName().endsWith("_test"))
{
    ivy.session.setActiveEnvironment("Test");
}
else
{
    ivy.session.setActiveEnvironment(null);
}
link

answered 08.01.2014 at 17:36

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

Your answer
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:

×37
×5

Asked: 08.01.2014 at 09:50

Seen: 2,322 times

Last updated: 08.01.2014 at 17:36