Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s-iam-server into EW-612
  • Loading branch information
MajedAlaitwniCap committed Nov 16, 2023
2 parents cc5a51b + 916a88e commit ffb03c6
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 49 deletions.
6 changes: 3 additions & 3 deletions config/config.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"SESSION_SECRET": "SessionSecretForDevelopment",
"SESSION_TTL_MS": 3600000,
"BACKEND_ADDRESS": "http://127.0.0.1:9090",
"OIDC_CALLBACK_URL": "http://localhost:8099/api/frontend/login",
"DEFAULT_LOGIN_REDIRECT": "http://localhost:8099/",
"LOGOUT_REDIRECT": "http://localhost:8099/"
"OIDC_CALLBACK_URL": "https://localhost:8099/api/frontend/login",
"DEFAULT_LOGIN_REDIRECT": "https://localhost:8099/",
"LOGOUT_REDIRECT": "https://localhost:8099/"
},
"DB": {
"CLIENT_URL": "postgres://admin:[email protected]:5432",
Expand Down
4 changes: 2 additions & 2 deletions dev-realm-spsh.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
"secret": "YDp6fYkbUcj4ZkyAOnbAHGQ9O72htc5M",
"redirectUris": [
"http://localhost:9091/*",
"http://localhost:8099/*",
"https://localhost:8099/*",
"/*"
],
"webOrigins": [
Expand Down Expand Up @@ -2364,4 +2364,4 @@
"clientPolicies": {
"policies": []
}
}
}
95 changes: 55 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"express-session": "^1.17.3",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"nest-commander": "^3.12.2",
"nest-commander": "~3.10",
"nest-keycloak-connect": "^1.9.2",
"openid-client": "^5.6.0",
"passport": "^0.6.0",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/frontend/auth/user.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ExecutionContext, createParamDecorator } from '@nestjs/common';
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
import { Request } from 'express';
import { UserinfoResponse } from 'openid-client';

type UserDecoratorFactory = () => ParameterDecorator;

export type User = { id_token: string; access_token: string; userinfo: UserinfoResponse } & Express.User;
export type User = { id_token: string; access_token: string; userinfo: UserinfoResponse };

export const CurrentUser: UserDecoratorFactory = createParamDecorator((_data: unknown, ctx: ExecutionContext) => {
const request: Request = ctx.switchToHttp().getRequest<Request>();
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rolle/api/provider.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ApiTags, ApiUnauthorizedResponse } from '@nestjs/swagger';
import { AuthenticatedUser } from 'nest-keycloak-connect';
import { GetServiceProviderInfoDo } from '../domain/get-service-provider-info.do.js';

@ApiTags('rolle')
@ApiTags('provider')
@Controller({ path: 'provider' })
export class ProviderController {
public constructor(private readonly rolleService: RolleService) {}
Expand Down

0 comments on commit ffb03c6

Please sign in to comment.