Announcement

Collapse
No announcement yet.

Automatic context selection by URI domain possible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatic context selection by URI domain possible?

    Hi,

    is it possible to have multiple contexts to be identified via http uri?

    e.g.
    h**ps://mail.some-dude.de/ox/
    would default to context 2 named "some-dude.de" while
    h**ps://mail.the-other-dude.de/ox/
    would default to context 3 named "the-other-dude.de"

    so users could use their plain login name to log in, instead of "user@some-dude.de"

    Thanks
    Sven

  • #2
    Originally posted by svensen View Post
    Hi,

    is it possible to have multiple contexts to be identified via http uri?

    e.g.
    h**ps://mail.some-dude.de/ox/
    would default to context 2 named "some-dude.de" while
    h**ps://mail.the-other-dude.de/ox/
    would default to context 3 named "the-other-dude.de"

    so users could use their plain login name to log in, instead of "user@some-dude.de"

    Thanks
    Sven
    Yes, this will work with some tricks. I already did this successfully with a custom login page written in javascript (also possible with php and "easy login"). This custom login page "evaluates" the domain part of the URI via javascript. Then the page has the context you need. then do a normal login via javascript (wiki->http api) as the normal login page also does. Now the user has a session AND a cookie set in his browser.

    Comment

    Working...
    X