Skip to content

Commit

Permalink
refactor: Remove oidcproxy (#16596)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc committed Jan 23, 2024
1 parent 31068bc commit 75cb794
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 210 deletions.
5 changes: 1 addition & 4 deletions server/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import type {ClientConfig, ServerConfig} from './config';
import {HealthCheckRoute} from './routes/_health/HealthRoute';
import {AppleAssociationRoute} from './routes/appleassociation/AppleAssociationRoute';
import {ConfigRoute} from './routes/config/ConfigRoute';
import {OIDCProxyRoute, OIDCProxyRoutePath} from './routes/E2EIProxy';
import {InternalErrorRoute, NotFoundRoute} from './routes/error/ErrorRoutes';
import {GoogleWebmasterRoute} from './routes/googlewebmaster/GoogleWebmasterRoute';
import {RedirectRoutes} from './routes/RedirectRoutes';
Expand Down Expand Up @@ -74,7 +73,6 @@ class Server {
this.app.use(ConfigRoute(this.config, this.clientConfig));
this.app.use(GoogleWebmasterRoute(this.config));
this.app.use(AppleAssociationRoute());
this.app.use(OIDCProxyRoute());
this.app.use(NotFoundRoute());
this.app.use(InternalErrorRoute());
}
Expand Down Expand Up @@ -190,8 +188,7 @@ class Server {
req.path.startsWith('/join') ||
req.path.startsWith('/auth') ||
req.path.startsWith('/google') ||
req.path.startsWith('/apple-app-site-association') ||
req.path.startsWith(OIDCProxyRoutePath);
req.path.startsWith('/apple-app-site-association');

if (ignoredPath) {
return next();
Expand Down
59 changes: 0 additions & 59 deletions server/routes/E2EIProxy/common.ts

This file was deleted.

21 changes: 0 additions & 21 deletions server/routes/E2EIProxy/index.ts

This file was deleted.

83 changes: 0 additions & 83 deletions server/routes/E2EIProxy/proxy.ts

This file was deleted.

41 changes: 0 additions & 41 deletions server/routes/E2EIProxy/route.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/script/E2EIdentity/OIDCService/OIDCService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ export class OIDCService {
// Build the proxy url and redirect uri
const currentOrigin = location.origin;
const authorityUrl = idpUrl.origin + idpUrl.pathname;
const proxyUrl = `${currentOrigin}/oidcProxy?targetUrl=${authorityUrl}`;
const redirectUri = `${currentOrigin}/oidc`;

const dexioConfig: UserManagerSettings = {
authority: proxyUrl,
authority: authorityUrl,
client_id: idpClientId,
redirect_uri: redirectUri,
response_type: 'code',
Expand Down

0 comments on commit 75cb794

Please sign in to comment.