Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Updated JWT authentication to handle RSA signatures #10961

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

barankyle
Copy link
Member

Summary

New authentication-setting fields for JWT algorithm and JWT public key. Keys should be inserted as strings with '\n' replacing new lines.

Replaced the last of the API.instance.client uses with Engine.instance.api

Added a new service that will return the JWT public key.

Resolves IR-3827

Subtasks Checklist

Breaking Changes

References

closes #insert number here

QA Steps

Copy link
Member

@hanzlamateen hanzlamateen left a comment

Choose a reason for hiding this comment

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

  1. It seems like some github checks are failing
  2. Getting following error when running locally.
    image

packages/client-core/src/user/services/AuthService.ts Outdated Show resolved Hide resolved
packages/client-core/src/API.ts Outdated Show resolved Hide resolved
packages/server-core/src/createApp.ts Outdated Show resolved Hide resolved
New authentication-setting fields for JWT algorithm and JWT public key.
Keys should be inserted as strings with '\n' replacing new lines.

Replaced the last of the API.instance.client uses with Engine.instance.api

Added a new service that will return the JWT public key.

Replaced current jsonwebtoken.decode calls with jsonwebtoken.verify.
decode does not check if the signature is valid.

Resolves IR-3827
@barankyle barankyle force-pushed the IR-3827-rsa-key-for-jwt-signing branch from 03c36e4 to c40dcd4 Compare August 14, 2024 20:45
@barankyle barankyle requested a review from speigg as a code owner August 14, 2024 20:45
@barankyle barankyle requested a review from hanzlamateen August 14, 2024 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants