Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 375074

Summary: [orion.page.content] Confusing message if not logged in
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: malgorzata.tomczyk, Szymon.Brandys
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description John J. Barton CLA 2012-03-22 11:35:48 EDT
When I reload my orion.page.content plugin page while not logged in I get a message about the plugin content missing, rather than a log in prompt.
Comment 1 Susan McCourt CLA 2012-03-22 11:40:52 EDT
Gosia or Szymon - what do I need to add to my page to get the normal "you must login" support?
Comment 2 Malgorzata Janczarska CLA 2012-03-22 13:07:44 EDT
(In reply to comment #0)
> When I reload my orion.page.content plugin page while not logged in I get a
> message about the plugin content missing, rather than a log in prompt.
If you are using form login then your 401 response should contain the following json:
{label: "John's B. plugin",
SignInLocation: <URL to login form>,
SignInKey: "johnsbplugin" <or any othwer unique string that will identify your plugin>
}
This should trigger the popup to go on and redirect you to the given URL to log in. Of cause the precondition is that response has to be 401.

If you want information about authentication to be shown permanently in the right hand corner (not only on 401), you can implement authenticationPlugin (try http://<orionserver>/authenticationPlugin.html as an example)
Comment 3 John Arthorne CLA 2015-05-05 14:51:59 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html