Forum Discussion

ddidonato's avatar
ddidonato
Creator II
3 years ago

StartItem

Is there any way I can pass the user name and password to "http://[ServerName]/[WebAlias]/default.aspx?StartItem=[ItemType]:[ItemID]"

3 Replies

  • Hi,

    I don´t think this is possible due to security reasons. But you can pass database and authentication mode when using Windows Authentication.
    If you use Windows auth mode, users can reuse existing logins which normally speeds up the login process.

    Let me know if you (or somebody else) knows a solution in case I was wrong!

  • Former Member's avatar
    Former Member
    Not applicable

    Try to use the basic HTTP authentication, which sends the credentials in the standard HTTP "Authorization" header. The format of the URL for this method is: mr mine

    [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:d2e066dd-f957-41d9-9fcf-e4274f9ef3a6:type=text&text=http%3A%2F%2Fusername%3Apassword%40ServerName%2FWebAlias%2Fdefault.aspx%3FStartItem%3DItemType%3AItemID]

    Another method is to use a custom authentication mechanism, which can use query parameters, HTTP headers, cookies, or tokens to verify the credentials. For example, you can generate a time-limited token for each user and add it to the URL, like this:

    [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:9945d040-3a24-4c7a-a4db-c26eed11418d:type=text&text=http%3A%2F%2FServerName%2FWebAlias%2Fdefault.aspx%3Ftoken%3Dbigtokengoeshere%26StartItem%3DItemType%3AItemID]

    Both have advantages and disadvantages, choose the method that best suits your problem.

    Sorry, when I attached the link automatically it shortened and lost information so I inserted the code. Hope it's not wrong.