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

Bash #24

Open
SlaSerX opened this issue Apr 2, 2021 · 4 comments
Open

Bash #24

SlaSerX opened this issue Apr 2, 2021 · 4 comments

Comments

@SlaSerX
Copy link

SlaSerX commented Apr 2, 2021

Hello if my app its write on bash how i can make Remote license verification

@furkansenharputlu
Copy link
Owner

You can call the verify endpoint. Please see the doc: https://github.com/furkansenharputlu/f-license/wiki/License-Server-API#verify-license

@SlaSerX
Copy link
Author

SlaSerX commented Apr 3, 2021

thx can u show me example with curl

@furkansenharputlu
Copy link
Owner

Something like:

curl --location --request GET 'http://localhost:4242/license/verify' \
--header 'Authorization: admin123' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.bnVsbA.BF4LHTey6WwVbYuKSP_kyfeB2-PZPEJYHmkdp_R92y4'

you should attach --cacert server-cert.pem if your license server is https and using self-signed certificate.

@ChristianVaughn
Copy link

Question relating to calling the verification API endpoint. In an actual application, it would be best not to include the Authorization code right? Because if the client program was calling verify with that in someone could sniff the request and then be able to call any admin only API call if they figure out what they are

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

3 participants