File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
login :
2
- oauth2_enabled :
2
+ oauth2_phone_enabled :
3
3
default : false
4
4
client : true
5
5
oauth2_client_id : " "
45
45
oauth2_button_title :
46
46
default : " with OAuth2"
47
47
client : true
48
+ oauth2_phone_button_title :
49
+ default : " with OAuth2 Phone"
50
+ client : true
48
51
oauth2_allow_association_change :
49
52
default : false
50
53
oauth2_disable_csrf :
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- # name: discourse-oauth2-basic
3
+ # name: discourse-oauth2-phone- basic
4
4
# about: Generic OAuth2 Plugin
5
- # version: 0.3
5
+ # version: 0.4
6
6
# authors: Robin Ward
7
7
# url: https://github.com/discourse/discourse-oauth2-basic
8
8
# transpile_js: true
9
9
10
- enabled_site_setting :oauth2_enabled
10
+ enabled_site_setting :oauth2_phone_enabled
11
11
12
12
class ::OmniAuth ::Strategies ::Oauth2Basic < ::OmniAuth ::Strategies ::OAuth2
13
13
option :name , "oauth2_basic_phone"
@@ -359,11 +359,11 @@ def after_authenticate(auth, existing_account: nil)
359
359
end
360
360
361
361
def enabled?
362
- SiteSetting . oauth2_enabled
362
+ SiteSetting . oauth2_phone_enabled
363
363
end
364
364
end
365
365
366
- auth_provider title_setting : "oauth2_button_title " , authenticator : OAuth2BasicAuthenticator . new
366
+ auth_provider title_setting : "oauth2_phone_button_title " , authenticator : OAuth2BasicAuthenticator . new
367
367
368
368
load File . expand_path (
369
369
"../lib/validators/oauth2_basic/oauth2_fetch_user_details_validator.rb" ,
You can’t perform that action at this time.
0 commit comments