Skip to content

feat: login with vc

Alexey Lunin requested to merge 45-login-with-vc into main

Description

This MR contains the code which implements jwt bearer authorization and refactoring for already existing basic authorization. The bearer and basic auth can be enabled at the same time

The new env variables introduced and can be configured. Changes:

AGENT_SVDX_BASIC_USER, AGENT_SVDX_BASIC_PASS: earlier this env variables were used for protecting *messages endpoints and for sending auth header with this credentials as basic auth to SVDX server. Now they are only used for creating auth header for request to SVDX server. For protecting OCM-enging endpoints can be used basic auth as explained bellow

Basic auth configuration:

AUTH_BASIC_USER: basic auth user name

AUTH_BASIC_PASS: basic auth user pass

Bearer auth configuration:

AUTH_JWT_PUBLIC_KEY: public key which used in TSA for creting JWT tokens

Related issues

#45 (closed)

Testing

[Describe any testing you've done on this code. What tests have you run, and what were the results?]

Checklist

  • I have updated the documentation (if necessary)
  • I have added unit tests for new functionality (if applicable)
  • My code follows the style guidelines of this project
  • I have tested this code on my local machine before submitting this MR

Reviewers

[Tag any reviewers that you want to review this merge request here.]

Additional Notes

[Add any additional notes or comments you have about this merge request.]

Edited by Alexey Lunin

Merge request reports

Loading