powerauth-push-server icon indicating copy to clipboard operation
powerauth-push-server copied to clipboard

Add validation for credentials upload

Open zcgandcomp opened this issue 1 year ago • 0 comments

Validate upload of credentials - after decoding from base64

  • for APNS privateKeyBase64 has to be valid p8 file in PEM format
  • for FCM privateKeyBase64 has to be valid json
    • TBD attribute type should be service_account
    • TBD attribute project_id should be the same as project_id in the API
    • TBD attribute private_key should be in format -----BEGIN PRIVATE KEY-----\nbase64 key\n-----END PRIVATE KEY-----\n

zcgandcomp avatar Nov 23 '23 15:11 zcgandcomp