-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
config_spec.rb
869 lines (712 loc) · 23.3 KB
/
config_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
# frozen_string_literal: true
require "spec_helper"
RSpec.describe Doorkeeper::Config do
subject(:config) { Doorkeeper.config }
describe "resource_owner_authenticator" do
it "sets the block that is accessible via authenticate_resource_owner" do
block = proc {}
Doorkeeper.configure do
orm DOORKEEPER_ORM
resource_owner_authenticator(&block)
end
expect(config.authenticate_resource_owner).to eq(block)
end
it "prints warning message by default" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
end
expect(Rails.logger).to receive(:warn).with(
I18n.t("doorkeeper.errors.messages.resource_owner_authenticator_not_configured"),
)
config.authenticate_resource_owner.call(nil)
end
end
describe "resource_owner_from_credentials" do
it "sets the block that is accessible via authenticate_resource_owner" do
block = proc {}
Doorkeeper.configure do
orm DOORKEEPER_ORM
resource_owner_from_credentials(&block)
end
expect(config.resource_owner_from_credentials).to eq(block)
end
it "prints warning message by default" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
end
expect(Rails.logger).to receive(:warn).with(
I18n.t("doorkeeper.errors.messages.credential_flow_not_configured"),
)
config.resource_owner_from_credentials.call(nil)
end
end
describe "setup_orm" do
it "adds specific error message to NameError exception" do
expect do
Doorkeeper.configure { orm "hibernate" }
Doorkeeper.setup
end.to raise_error(NameError, /ORM adapter not found \(hibernate\)/)
end
it "does not change other exceptions" do
allow(Doorkeeper).to receive(:setup_orm_adapter) { raise NoMethodError }
expect do
Doorkeeper.configure { orm "hibernate" }
Doorkeeper.setup
end.to raise_error(NoMethodError)
end
end
describe "admin_authenticator" do
it "sets the block that is accessible via authenticate_admin" do
default_behaviour = "default behaviour"
allow(described_class).to receive(:head).and_return(default_behaviour)
Doorkeeper.configure do
orm DOORKEEPER_ORM
end
expect(config.authenticate_admin.call({})).to eq(default_behaviour)
end
it "could be customized with a block" do
block = proc {}
Doorkeeper.configure do
orm DOORKEEPER_ORM
admin_authenticator(&block)
end
expect(config.authenticate_admin).to eq(block)
end
end
describe "access_token_expires_in" do
it "has 2 hours by default" do
expect(config.access_token_expires_in).to eq(2.hours)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_token_expires_in 4.hours
end
expect(config.access_token_expires_in).to eq(4.hours)
end
it "can be set to nil" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_token_expires_in nil
end
expect(config.access_token_expires_in).to be_nil
end
end
describe "scopes" do
it "has default scopes" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
default_scopes :public
end
expect(config.default_scopes).to include("public")
end
it "has optional scopes" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
optional_scopes :write, :update
end
expect(config.optional_scopes).to include("write", "update")
end
it "has all scopes" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
default_scopes :normal
optional_scopes :admin
end
expect(config.scopes).to include("normal", "admin")
end
end
describe "scopes_by_grant_type" do
it "is {} by default" do
expect(config.scopes_by_grant_type).to eq({})
end
it "has hash value" do
hash = {}
Doorkeeper.configure do
orm DOORKEEPER_ORM
scopes_by_grant_type hash
end
expect(config.scopes_by_grant_type).to eq(hash)
end
end
describe "use_refresh_token" do
it "is false by default" do
expect(config.refresh_token_enabled?).to eq(false)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
use_refresh_token
end
expect(config.refresh_token_enabled?).to eq(true)
end
it "can accept a boolean parameter" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
use_refresh_token false
end
expect(config.refresh_token_enabled?).to eq(false)
end
it "can accept a block parameter" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
use_refresh_token { |_context| nil }
end
expect(config.refresh_token_enabled?).to be_a(Proc)
end
it "does not includes 'refresh_token' in token_grant_flows" do
expect(config.token_grant_flows).not_to include Doorkeeper::GrantFlow.get("refresh_token")
end
context "when enabled" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
use_refresh_token
end
end
it "includes 'refresh_token' in token_grant_flows" do
expect(config.token_grant_flows).to include Doorkeeper::GrantFlow.get("refresh_token")
end
end
end
describe "token_reuse_limit" do
it "is 100 by default" do
expect(config.token_reuse_limit).to eq(100)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
token_reuse_limit 90
end
expect(config.token_reuse_limit).to eq(90)
end
it "sets the value to 100 if invalid value is being set" do
expect(Rails.logger).to receive(:warn).with(/will be set to default 100/)
Doorkeeper.configure do
orm DOORKEEPER_ORM
reuse_access_token
token_reuse_limit 110
end
expect(config.token_reuse_limit).to eq(100)
end
end
describe "enforce_configured_scopes" do
it "is false by default" do
expect(config.enforce_configured_scopes?).to eq(false)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
enforce_configured_scopes
end
expect(config.enforce_configured_scopes?).to eq(true)
end
end
describe 'use_url_path_for_native_authorization' do
around(:each) do |example|
Doorkeeper.configure do
orm DOORKEEPER_ORM
use_url_path_for_native_authorization
end
Rails.application.reload_routes!
subject { Doorkeeper.configuration }
example.run
Doorkeeper.configure do
orm DOORKEEPER_ORM
end
Rails.application.reload_routes!
end
it 'sets the native authorization code route /:code' do
expect(subject.native_authorization_code_route).to eq('/:code')
end
end
describe "client_credentials" do
it "has defaults order" do
expect(config.client_credentials_methods)
.to eq(%i[from_basic from_params])
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
client_credentials :from_digest, :from_params
end
expect(config.client_credentials_methods)
.to eq(%i[from_digest from_params])
end
end
describe "force_ssl_in_redirect_uri" do
it "is true by default in non-development environments" do
expect(config.force_ssl_in_redirect_uri).to eq(true)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
force_ssl_in_redirect_uri(false)
end
expect(config.force_ssl_in_redirect_uri).to eq(false)
end
it "can be a callable object" do
block = proc { false }
Doorkeeper.configure do
orm DOORKEEPER_ORM
force_ssl_in_redirect_uri(&block)
end
expect(config.force_ssl_in_redirect_uri).to eq(block)
expect(config.force_ssl_in_redirect_uri.call).to eq(false)
end
end
describe "access_token_methods" do
it "has defaults order" do
expect(config.access_token_methods)
.to eq(%i[from_bearer_authorization from_access_token_param from_bearer_param])
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_token_methods :from_access_token_param, :from_bearer_param
end
expect(config.access_token_methods)
.to eq(%i[from_access_token_param from_bearer_param])
end
end
describe "forbid_redirect_uri" do
it "is false by default" do
expect(config.forbid_redirect_uri.call(URI.parse("https://localhost"))).to eq(false)
end
it "can be a callable object" do
block = proc { true }
Doorkeeper.configure do
orm DOORKEEPER_ORM
forbid_redirect_uri(&block)
end
expect(config.forbid_redirect_uri).to eq(block)
expect(config.forbid_redirect_uri.call).to eq(true)
end
end
describe "enable_application_owner" do
it "is disabled by default" do
expect(Doorkeeper.config.enable_application_owner?).not_to be(true)
end
if DOORKEEPER_ORM == :active_record
context "when enabled without confirmation", active_record: true do
class ApplicationWithOwner < ActiveRecord::Base
include Doorkeeper::Orm::ActiveRecord::Mixins::Application
end
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
enable_application_owner
application_class "ApplicationWithOwner"
end
Doorkeeper.run_orm_hooks
end
it "adds support for application owner" do
instance = ApplicationWithOwner.new(FactoryBot.attributes_for(:application))
expect(instance).to respond_to :owner
expect(instance).to be_valid
end
it "Doorkeeper.configuration.confirm_application_owner? returns false" do
expect(Doorkeeper.config.confirm_application_owner?).not_to be(true)
end
end
end
if DOORKEEPER_ORM == :active_record
context "when enabled with confirmation set to true", active_record: true do
class ApplicationWithOwner < ActiveRecord::Base
include Doorkeeper::Orm::ActiveRecord::Mixins::Application
end
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
enable_application_owner confirmation: true
application_class "ApplicationWithOwner"
end
Doorkeeper.run_orm_hooks
end
it "adds support for application owner" do
instance = ApplicationWithOwner.new(FactoryBot.attributes_for(:application))
expect(instance).to respond_to :owner
expect(instance).not_to be_valid
expect(instance.errors[:owner]).to be_present
end
it "Doorkeeper.configuration.confirm_application_owner? returns true" do
expect(Doorkeeper.config.confirm_application_owner?).to be(true)
end
end
end
end
describe "realm" do
it "is 'Doorkeeper' by default" do
expect(Doorkeeper.config.realm).to eq("Doorkeeper")
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
realm "Example"
end
expect(config.realm).to eq("Example")
end
end
describe "grant_flows" do
it "is set to all grant flows by default" do
expect(Doorkeeper.config.grant_flows)
.to eq(%w[authorization_code client_credentials])
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
grant_flows %w[authorization_code implicit]
end
expect(config.grant_flows).to eq %w[authorization_code implicit]
end
context "when including 'authorization_code'" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
grant_flows ["authorization_code"]
end
end
it "includes 'authorization_code' in authorization_response_flows" do
expect(config.authorization_response_flows).to include Doorkeeper::GrantFlow.get("authorization_code")
end
it "includes 'authorization_code' in token_grant_flows" do
expect(config.token_grant_flows).to include Doorkeeper::GrantFlow.get("authorization_code")
end
end
context "when including 'implicit'" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
grant_flows ["implicit"]
end
end
it "includes 'implicit' in authorization_response_flows" do
expect(config.authorization_response_flows).to include Doorkeeper::GrantFlow.get("implicit")
end
end
context "when including 'password'" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
grant_flows ["password"]
end
end
it "includes 'password' in token_grant_flows" do
expect(config.token_grant_flows).to include Doorkeeper::GrantFlow.get("password")
end
end
context "when including 'client_credentials'" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
grant_flows ["client_credentials"]
end
end
it "includes 'client_credentials' in token_grant_flows" do
expect(config.token_grant_flows).to include Doorkeeper::GrantFlow.get("client_credentials")
end
end
end
describe "access_token_generator" do
it "is 'Doorkeeper::OAuth::Helpers::UniqueToken' by default" do
expect(Doorkeeper.configuration.access_token_generator).to(
eq("Doorkeeper::OAuth::Helpers::UniqueToken"),
)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_token_generator "Example"
end
expect(config.access_token_generator).to eq("Example")
end
end
describe "custom_access_token_attributes" do
it "is '[]' by default" do
expect(Doorkeeper.configuration.custom_access_token_attributes).to(eq([]))
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
custom_access_token_attributes [:tenant_name]
end
expect(config.custom_access_token_attributes).to eq([:tenant_name])
end
end
describe "application_secret_generator" do
it "is 'Doorkeeper::OAuth::Helpers::UniqueToken' by default" do
expect(Doorkeeper.configuration.application_secret_generator).to(
eq("Doorkeeper::OAuth::Helpers::UniqueToken"),
)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
application_secret_generator "Example"
end
expect(config.application_secret_generator).to eq("Example")
end
end
describe "default_generator_method" do
it "is :urlsafe_base64 by default" do
expect(Doorkeeper.configuration.default_generator_method)
.to eq(:urlsafe_base64)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
default_generator_method :hex
end
expect(config.default_generator_method).to eq(:hex)
end
end
describe "base_controller" do
context "when default value set" do
it { expect(Doorkeeper.configuration.base_controller).to be_an_instance_of(Proc) }
it "resolves to a ApplicationController::Base in default mode" do
expect(Doorkeeper.configuration.resolve_controller(:base))
.to eq(ActionController::Base)
end
it "resolves to a ApplicationController::API in api_only mode" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
api_only
end
expect(Doorkeeper.configuration.resolve_controller(:base))
.to eq(ActionController::API)
end
end
context "when custom value set" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
base_controller "ApplicationController"
end
end
it { expect(Doorkeeper.config.base_controller).to eq("ApplicationController") }
end
end
describe "base_metal_controller" do
context "when default value set" do
it { expect(Doorkeeper.config.base_metal_controller).to eq("ActionController::API") }
end
context "when custom value set" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
base_metal_controller { "ApplicationController" }
end
end
it { expect(Doorkeeper.configuration.resolve_controller(:base_metal)).to eq(ApplicationController) }
end
end
if DOORKEEPER_ORM == :active_record
class FakeCustomModel < ::ActiveRecord::Base
end
describe "access_token_class" do
it "uses default doorkeeper value" do
expect(config.access_token_class).to eq("Doorkeeper::AccessToken")
expect(config.access_token_model).to be(Doorkeeper::AccessToken)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_token_class "FakeCustomModel"
end
expect(config.access_token_class).to eq("FakeCustomModel")
expect(config.access_token_model).to be(FakeCustomModel)
end
end
describe "access_grant_class" do
it "uses default doorkeeper value" do
expect(config.access_grant_class).to eq("Doorkeeper::AccessGrant")
expect(config.access_grant_model).to be(Doorkeeper::AccessGrant)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
access_grant_class "FakeCustomModel"
end
expect(config.access_grant_class).to eq("FakeCustomModel")
expect(config.access_grant_model).to be(FakeCustomModel)
end
end
describe "application_class" do
it "uses default doorkeeper value" do
expect(config.application_class).to eq("Doorkeeper::Application")
expect(config.application_model).to be(Doorkeeper::Application)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
application_class "FakeCustomModel"
end
expect(config.application_class).to eq("FakeCustomModel")
expect(config.application_model).to be(FakeCustomModel)
end
end
end
describe "api_only" do
it "is false by default" do
expect(config.api_only).to eq(false)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
api_only
end
expect(config.api_only).to eq(true)
end
end
describe "token_lookup_batch_size" do
it "uses default doorkeeper value" do
expect(config.token_lookup_batch_size).to eq(10_000)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
token_lookup_batch_size 100_000
end
expect(config.token_lookup_batch_size).to eq(100_000)
end
end
describe "strict_content_type" do
it "is false by default" do
expect(config.enforce_content_type).to eq(false)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
enforce_content_type
end
expect(config.enforce_content_type).to eq(true)
end
end
describe "handle_auth_errors" do
it "is set to render by default" do
expect(Doorkeeper.config.handle_auth_errors).to eq(:render)
end
it "can change the value" do
Doorkeeper.configure do
orm DOORKEEPER_ORM
handle_auth_errors :raise
end
expect(config.handle_auth_errors).to eq(:raise)
end
end
describe "token_secret_strategy" do
it "is plain by default" do
expect(config.token_secret_strategy).to eq(Doorkeeper::SecretStoring::Plain)
expect(config.token_secret_fallback_strategy).to eq(nil)
end
context "when provided" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_token_secrets
end
end
it "will enable hashing for applications" do
expect(config.token_secret_strategy).to eq(Doorkeeper::SecretStoring::Sha256Hash)
expect(config.token_secret_fallback_strategy).to eq(nil)
end
end
context "when manually provided with invalid constant" do
it "raises an exception" do
expect do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_token_secrets using: "does not exist"
end
end.to raise_error(NameError)
end
end
context "when manually provided with invalid option" do
it "raises an exception" do
expect do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_token_secrets using: "Doorkeeper::SecretStoring::BCrypt"
end
end.to raise_error(
ArgumentError,
/can only be used for storing application secrets/,
)
end
end
context "when provided with fallback" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_token_secrets fallback: :plain
end
end
it "will enable hashing for applications" do
expect(config.token_secret_strategy).to eq(Doorkeeper::SecretStoring::Sha256Hash)
expect(config.token_secret_fallback_strategy).to eq(Doorkeeper::SecretStoring::Plain)
end
end
describe "hash_token_secrets together with reuse_access_token" do
it "will disable reuse_access_token" do
expect(Rails.logger).to receive(:warn).with(/reuse_access_token will be disabled/)
Doorkeeper.configure do
orm DOORKEEPER_ORM
reuse_access_token
hash_token_secrets
end
expect(config.reuse_access_token).to eq(false)
end
end
end
describe "application_secret_strategy" do
it "is plain by default" do
expect(config.application_secret_strategy).to eq(Doorkeeper::SecretStoring::Plain)
expect(config.application_secret_fallback_strategy).to eq(nil)
end
context "when provided" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_application_secrets
end
end
it "will enable hashing for applications" do
expect(config.application_secret_strategy).to eq(Doorkeeper::SecretStoring::Sha256Hash)
expect(config.application_secret_fallback_strategy).to eq(nil)
end
end
context "when manually provided with invalid constant" do
it "raises an exception" do
expect do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_application_secrets using: "does not exist"
end
end.to raise_error(NameError)
end
end
context "when provided with fallback" do
before do
Doorkeeper.configure do
orm DOORKEEPER_ORM
hash_application_secrets fallback: :plain
end
end
it "will enable hashing for applications" do
expect(config.application_secret_strategy).to eq(Doorkeeper::SecretStoring::Sha256Hash)
expect(config.application_secret_fallback_strategy).to eq(Doorkeeper::SecretStoring::Plain)
end
end
end
describe "options deprecation" do
it "prints a warning message when an option is deprecated" do
expect(Kernel).to receive(:warn).with(
/\[DOORKEEPER\] native_redirect_uri has been deprecated and will soon be removed/,
)
Doorkeeper.configure do
orm DOORKEEPER_ORM
native_redirect_uri "urn:ietf:wg:oauth:2.0:oob"
end
end
end
end