mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 22:16:17 +08:00
812add18bd
At the moment core providers are hard-coded in Javascript, and plugin providers get added to the JS payload at compile time. This refactor means that we only ship enabled providers to the client.
15 lines
543 B
Ruby
15 lines
543 B
Ruby
# name: plugin-name
|
|
# about: about: my plugin
|
|
# version: 0.1
|
|
# authors: Frank Zappa
|
|
|
|
auth_provider title: 'with Ubuntu',
|
|
authenticator: Auth::OpenIdAuthenticator.new('ubuntu', 'https://login.ubuntu.com', 'ubuntu_login_enabled', trusted: true),
|
|
message: 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
|
|
frame_width: 1000, # the frame size used for the pop up window, overrides default
|
|
frame_height: 800
|
|
|
|
register_javascript <<JS
|
|
console.log("Hello world")
|
|
JS
|