Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-create a compatible interface as of version 0.0.5 and below #7

Open
SergeMv opened this issue Apr 29, 2023 · 1 comment
Open

Re-create a compatible interface as of version 0.0.5 and below #7

SergeMv opened this issue Apr 29, 2023 · 1 comment

Comments

@SergeMv
Copy link

SergeMv commented Apr 29, 2023

In previous versions of safetynet_attestation you could do this:

  • pass your own nonce as a parameter to the safetyNetAttestationJwt() call
  • receive a JWT string that you pass to your own server for deciphering and make decisions on the server

In your current 1.0.1 version nothing of these is possible:

  • you cannot pass your nonce to the playIntegrityApiPayload or playIntegrityApiManualPayload
  • you receive only decoded JWSPayloadModel. None of your methods now return a String

Can you please re-create the old interface?
That is: receive a JWT string as a response (not a parsed object) and pass your own nonce to the function

Thank you!

@pewiher
Copy link
Contributor

pewiher commented May 8, 2023

Hello friend, thank you very much for using the plugin, currently in this version there are 2 ways to use it: manual and auth token 2.

The first (manual) needs to be specified, decryption_api_key and the verification_key, these must be specified in the manifest. The nonce is generated automatically.

the other automatically generates a noce but you need the authentication server that you develop.

In both cases the cloud project id is needed.

It will be analyzed, to see if it is feasible to add these parameters as part of the function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants