|
16 | 16 | controllers authorizations: "custom_authorizations", |
17 | 17 | tokens: "custom_authorizations", |
18 | 18 | applications: "custom_authorizations", |
19 | | - token_info: "custom_authorizations" |
| 19 | + token_info: "custom_authorizations", |
| 20 | + discovery: "custom_discovery" |
20 | 21 |
|
21 | 22 | as authorizations: "custom_auth", |
22 | 23 | tokens: "custom_token", |
|
29 | 30 | controllers authorizations: "custom_authorizations", |
30 | 31 | tokens: "custom_authorizations", |
31 | 32 | applications: "custom_authorizations", |
32 | | - token_info: "custom_authorizations" |
| 33 | + token_info: "custom_authorizations", |
| 34 | + discovery: "custom_discovery" |
33 | 35 |
|
34 | 36 | as authorizations: "custom_auth", |
35 | 37 | tokens: "custom_token", |
|
41 | 43 | use_doorkeeper do |
42 | 44 | controllers authorizations: "custom_authorizations", |
43 | 45 | tokens: "custom_authorizations", |
44 | | - token_info: "custom_authorizations" |
| 46 | + token_info: "custom_authorizations", |
| 47 | + discovery: "custom_discovery" |
45 | 48 |
|
46 | 49 | as authorizations: "custom_auth", |
47 | 50 | tokens: "custom_token", |
|
84 | 87 | end |
85 | 88 |
|
86 | 89 | it "GET /inner_space/.well-known/oauth-authorization-server route to show Discovery controller" do |
87 | | - expect(get("/space/.well-known/oauth-authorization-server")).to route_to("doorkeeper/discovery#show") |
| 90 | + expect(get("/space/.well-known/oauth-authorization-server")).to route_to("custom_discovery#show") |
88 | 91 | end |
89 | 92 |
|
90 | 93 |
|
|
121 | 124 | end |
122 | 125 |
|
123 | 126 | it "GET /space/.well-known/oauth-authorization-server route to show Discovery controller" do |
124 | | - expect(get("/space/.well-known/oauth-authorization-server")).to route_to("doorkeeper/discovery#show") |
| 127 | + expect(get("/space/.well-known/oauth-authorization-server")).to route_to("custom_discovery#show") |
125 | 128 | end |
126 | 129 |
|
127 | 130 | it "POST /outer_space/oauth/token is not be routable" do |
|
141 | 144 | end |
142 | 145 |
|
143 | 146 | it "GET /outer_space/.well-known/oauth-authorization-server route to show Discovery controller" do |
144 | | - expect(get("/outer_space/.well-known/oauth-authorization-server")).to route_to("doorkeeper/discovery#show") |
| 147 | + expect(get("/outer_space/.well-known/oauth-authorization-server")).to route_to("custom_discovery#show") |
145 | 148 | end |
146 | 149 | end |
0 commit comments