Skip to content

Commit

Permalink
Fix name of strategy, add screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
cpradio committed Oct 15, 2016
1 parent 4fa3ff4 commit 46aab62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Office365Authenticator < ::Auth::OAuth2Authenticator
PLUGIN_NAME = 'oauth-office365'

def name
'office365'
'microsoft_office365'
end

def after_authenticate(auth_token)
Expand All @@ -33,7 +33,7 @@ def after_authenticate(auth_token)
end

def register_middleware(omniauth)
omniauth.provider :office365,
omniauth.provider :microsoft_office365,
setup: lambda { |env|
strategy = env['omniauth.strategy']
strategy.options[:client_id] = SiteSetting.office365_client_id
Expand All @@ -47,14 +47,14 @@ def register_middleware(omniauth)
:message => 'Log in via Office365',
:frame_width => 920,
:frame_height => 800,
:authenticator => Office365Authenticator.new('office365',
:authenticator => Office365Authenticator.new('microsoft_office365',
trusted: true,
auto_create_account: true)


register_css <<CSS
.btn-social.office365 {
.btn-social.microsoft_office365 {
background: #EB3D01;
}
Expand Down
Binary file added screenshot-admin-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot-login-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46aab62

Please sign in to comment.