@@ 139-145 (lines=7) @@ | ||
136 | case '/.well-known/webfinger': |
|
137 | ||
138 | return $this->webfingerModule->getWebfinger($request); |
|
139 | case '/authorize': |
|
140 | $userId = $this->auth['form']->requireAuth($request); |
|
141 | if ($userId instanceof Response) { |
|
142 | return $userId; |
|
143 | } |
|
144 | ||
145 | return $this->oauthModule->getAuthorize($request, $userId); |
|
146 | case '/': |
|
147 | $userId = $this->auth['form']->optionalAuth($request); |
|
148 | ||
@@ 150-156 (lines=7) @@ | ||
147 | $userId = $this->auth['form']->optionalAuth($request); |
|
148 | ||
149 | return $this->uiModule->getRootPage($request, $userId); |
|
150 | case '/account': |
|
151 | $userId = $this->auth['form']->requireAuth($request); |
|
152 | if ($userId instanceof Response) { |
|
153 | return $userId; |
|
154 | } |
|
155 | ||
156 | return $this->uiModule->getAccountPage($request, $userId); |
|
157 | default: |
|
158 | $tokenInfo = $this->auth['bearer']->optionalAuth($request); |
|
159 |