JanssenProject / jans

An open source enterprise digital identity platform for CIAM or workforce... Janssen is a distribution of standards-based, developer friendly, components that are engineered to work together in any cloud. #OAuth #OpenID #FIDO
https://docs.jans.io
Apache License 2.0
470 stars 74 forks source link

fix(jans-cli): getting error when deploying agam project through Jans-CLI #7639

Closed manojs1978 closed 9 months ago

manojs1978 commented 9 months ago

Describe the bug getting error when deploying agam project through Jans-CLI

To Reproduce Steps to reproduce the behavior:

  1. install jans 1.0.22
  2. complete device auth
  3. deploy agama project using command ex: /opt/jans/jans-cli/config-cli.py --operation-id post-agama-prj --url-suffix name:"agama-pw.gama"
  4. get project status using comand ex: /opt/jans/jans-cli/config-cli.py --operation-id get-agama-prj-by-name --url-suffix name:"agama-pw"
  5. See error

Expected behavior should not get any error while deploying through cli

Screenshots If applicable, add screenshots to help explain your problem. image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

project agama-pw https://github.com/GluuFederation/agama-pw/releases/tag/v1.0.1

devrimyatar commented 9 months ago

@manojs1978 You should provide agama project file with argument --data, for example:

/opt/jans/jans-cli/config-cli.py --operation-id=post-agama-prj --url-suffix="name:test-project" --data=/mnt/data/agama/journey.zip 
Server Response:
{
  "message": "A deployment task for project test-project has been queued. Use the GET endpoint to poll status"
}

The term server_error is replaced by message in commit 9fe6837b631595adc6fd0dae8ed9003a65ddcdd8