docs icon indicating copy to clipboard operation
docs copied to clipboard

Research and doc authenticate-client API endpoint

Open iansk opened this issue 3 years ago • 4 comments

  • [ ] Determine and doc exactly how this flow works.
  • [ ] Doc the requirements for the certificate (which fields are used for auth)
  • [ ] Reproduce the flow on Linux. @pfox1969 Has a PowerShell script that works on Linux, and depends on the certificate manager feature (certmgr.msc).
  • [ ] Example should show (1) getting the token (2) Calling an endpoint with the token, e.g. image scan reports

iansk avatar Mar 25 '21 01:03 iansk

@iansk Here are my steps for generating a cert and using it for auth. https://gist.github.com/sgordon46/3ddf4eb8c8e6ee263248f6eb0a9df5a0

sgordon46 avatar Mar 25 '21 12:03 sgordon46

@sgordon46 You're awesome!! Thank you :)

iansk avatar Mar 25 '21 13:03 iansk

@iansk @sgordon46 I wasn't able to get the steps fully working. I tried installing LDAP first as described in this article: https://www.techrepublic.com/article/how-to-install-openldap-on-ubuntu-18-04/ but wasn't able to successfully complete those steps either (the credentials fail when trying to call ldapadd).

In any case, I think what we have in the current /authenticate-client/post.md file is still correct - just can't verify the response from the POST example.

Is there anything else you want in the post.md file?

KICKdesigns avatar Mar 29 '21 21:03 KICKdesigns

Thanks, @KICKdesigns The post.md file looks fine to me. Nothing else is required.

iansk avatar Mar 30 '21 05:03 iansk