alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
formatting and comment removal
author
Wesley Finck
date
9 months ago
(Oct 16, 2025, 11:39 AM -0700)
commit
4bea9539
4bea953932aad64eb996f225427b53d98d2ceb14
parent
aef18bce
aef18bce1ed2635e5811c3038c00aa356cc7f54e
+7
-8
3 changed files
Expand all
Collapse all
Unified
Split
src
modules
user
infrastructure
http
controllers
CompleteOAuthSignInController.ts
shared
infrastructure
http
app.ts
middleware
AuthMiddleware.ts
-6
src/modules/user/infrastructure/http/controllers/CompleteOAuthSignInController.ts
View file
Reviewed
···
16
16
const appUrl = configService.getAppConfig().appUrl;
17
17
try {
18
18
const { code, state, iss } = req.query;
19
19
-
console.log('OAuth callback received with params:', req.query);
20
20
-
console.log('request coming from:', req.headers.referer);
21
21
-
console.log('requesting host:', req.headers.host);
22
19
23
20
if (!code || !state || !iss) {
24
21
return this.badRequest(res, 'Missing required parameters');
···
36
33
`${appUrl}/login?error=${encodeURIComponent(result.error.message)}`,
37
34
);
38
35
}
39
39
-
40
40
-
console.log('setting cookies with tokens:', result.value);
41
41
-
console.log('redirecting to:', `${appUrl}/auth/complete`);
42
36
43
37
// Set tokens in httpOnly cookies
44
38
this.cookieService.setTokens(res, {
+4
-1
src/shared/infrastructure/http/app.ts
View file
Reviewed
···
57
57
const repositories = RepositoryFactory.create(configService);
58
58
const services = ServiceFactory.createForWebApp(configService, repositories);
59
59
const useCases = UseCaseFactory.createForWebApp(repositories, services);
60
60
-
const controllers = ControllerFactory.create(useCases, services.cookieService);
60
60
+
const controllers = ControllerFactory.create(
61
61
+
useCases,
62
62
+
services.cookieService,
63
63
+
);
61
64
62
65
// Routes
63
66
const userRouter = Router();
+3
-1
src/shared/infrastructure/http/middleware/AuthMiddleware.ts
View file
Reviewed
···
153
153
const token = this.cookieService.getAccessToken(req);
154
154
155
155
if (!token) {
156
156
-
res.status(401).json({ message: 'No authentication cookie provided' });
156
156
+
res
157
157
+
.status(401)
158
158
+
.json({ message: 'No authentication cookie provided' });
157
159
return;
158
160
}
159
161