|
|
@ -64,14 +64,14 @@ class OAuth2Service extends SiteService {
|
|
|
|
attachRoutes (app) {
|
|
|
|
attachRoutes (app) {
|
|
|
|
app.get(
|
|
|
|
app.get(
|
|
|
|
'/oauth2/authorize',
|
|
|
|
'/oauth2/authorize',
|
|
|
|
ensureLoggedIn('/welcome/login'),
|
|
|
|
ensureLoggedIn.ensureLoggedIn('/welcome/login'),
|
|
|
|
this.server.authorize(this.processAuthorize.bind(this)),
|
|
|
|
this.server.authorize(this.processAuthorize.bind(this)),
|
|
|
|
this.renderAuthorizeDialog.bind(this),
|
|
|
|
this.renderAuthorizeDialog.bind(this),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
app.post(
|
|
|
|
app.post(
|
|
|
|
'/oauth2/authorize/decision',
|
|
|
|
'/oauth2/authorize/decision',
|
|
|
|
ensureLoggedIn('/welcome/login'),
|
|
|
|
ensureLoggedIn.ensureLoggedIn('/welcome/login'),
|
|
|
|
this.server.decision(),
|
|
|
|
this.server.decision(),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|