Hello,
I could not find or successfully configured client auth with cert and disabled user/password. Can you give some help ?
Hello,
I could not find or successfully configured client auth with cert and disabled user/password. Can you give some help ?
How to use certs
if you have created a certificate then
base64Cert=base64(certString);
curl -X POST --header 'Cert:$base64Cert' https://yourserver/api/auth
will return an object {key:$generatedKey}
then post this object to
curl -X POST --data '{"key":"$generatedKey"}' --header 'content-type:application/json' https://yourserver/api/accesstoken
will return an accessToken and refreshToken
for every api request you should use send this accessToken in headers like adding
‘Authorization: Bearer $accessToken’
for refreshing access token. that these tokens expires
curl -X POST --data '{"refreshToken":"$refreshToken"} https://yourserver/api/refreshtoken
So if I understand certs can only be used for api auth, it is not posible to use with client app to authorized user with agent and cert instead of user/pass?
We are working on a new client version. We will try to add this feature to new client