Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] Plugins that requires authentication?

I'm trying to integrate some flux authentication support into the flux-orion plugin that Alex made.

I know you can add a 'login' url to a plugin and I know how to add this url. However I can't find much if any documentation about this 'login' link, how it is used and how it interacts with plugin lifecycle.

Also, clicking the github plugin 'login' link doesn't seem to work (I only get a 404).

So I have a few questions

1) I need a way to ensure a user is logged in (via the flux-plugin login url) before the plugin is loaded.
Is this possible? (Basically, the plugin isn't really valid and won't work unless a user is authenticated before the plugin is loaded).

2) what happens when you use the login link again and login as a different user? Does the plugin get reloaded?

3) Is there documentation or examples of the proper/recommended way to create a plugin that requires some kind of authentication before its functionality can be used?

Kris

Back to the top