Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Location
    Hamburg, Germany
    Posts
    50

    Default 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. #2
    Join Date
    Feb 2007
    Posts
    41

    Default

    Quote 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •