kanidm: Tool broken: SchemaViolation(MissingMustAttribute(["oauth2_rs_name"]))

I did this

$ kanidm system oauth2 create test 'Test' https://test.example.com
ERROR kanidm_cli: HTTP Error: 400 Bad Request SchemaViolation(MissingMustAttribute(["oauth2_rs_name"])) "2cd34330-e202-4d25-8394-febf96340d84"

I expected the following

Success

Kanidm version details

  • Output of kanidm(d) version:
  • Are you running it in a container? If so, which image/tag?:
$ docker images | grep kanidm
kanidm/tools                             devel                    6d8d37e85392   About an hour ago   622MB
kanidm/server                            devel                    df43003fb98f   2 hours ago         817MB
  • Operating System / Version (On Unix please post the output of uname -a): Linux vd 5.4.0-170-generic #188-Ubuntu SMP Wed Jan 10 09:51:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Any other comments

This

POST /v1/oauth2/_basic

{
  "attrs": {
    "oauth2_rs_name": ["test"],
    "name": ["test"],
    "displayname": ["Test"],
    "oauth2_rs_origin": ["https://test.example.com"]
  }
}

works.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

Yes, the docs you are reading online are ‘stable’ not the ‘development’ verison. If you want the devel version docs you need to read the book source