Skip to content

Dev release#3

Merged
Shubham4026 merged 2 commits into
mainfrom
dev-release
May 7, 2026
Merged

Dev release#3
Shubham4026 merged 2 commits into
mainfrom
dev-release

Conversation

@Shubham4026
Copy link
Copy Markdown
Collaborator

No description provided.

@Shubham4026 Shubham4026 merged commit baecd37 into main May 7, 2026
1 check passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the RBAC JWT strategy and its associated components, including the RbacAuthGuard, RbacJwtStrategy, and related configuration settings, to simplify the authentication flow. A review comment suggests improving the JwtStrategy by using namespaced configuration keys and adding type safety when retrieving the Keycloak public key.

@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy, 'jwt-keycloak') {
constructor(configService: ConfigService) {
const publicKey = configService.get('KEYCLOAK_REALM_RSA_PUBLIC_KEY');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The ConfigService should access the configuration using the namespaced key 'auth.keycloakRsaPublicKey' as defined in src/config/auth.config.ts. This ensures consistency with the application's configuration pattern and leverages the default values or transformations defined in the configuration file. Additionally, providing the type parameter <string> improves type safety.

Suggested change
const publicKey = configService.get('KEYCLOAK_REALM_RSA_PUBLIC_KEY');
const publicKey = configService.get<string>('auth.keycloakRsaPublicKey');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant