https://github.com/box-community/samples-docs-authenticate-with-jwt-api
Samples for the "Authenticate with JWT (API)" guide
https://github.com/box-community/samples-docs-authenticate-with-jwt-api
box dotnet java jwt node python ruby samples
Last synced: 5 months ago
JSON representation
Samples for the "Authenticate with JWT (API)" guide
- Host: GitHub
- URL: https://github.com/box-community/samples-docs-authenticate-with-jwt-api
- Owner: box-community
- License: apache-2.0
- Created: 2018-11-01T18:20:31.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T16:25:06.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T15:58:12.741Z (over 1 year ago)
- Topics: box, dotnet, java, jwt, node, python, ruby, samples
- Language: C#
- Size: 129 KB
- Stars: 13
- Watchers: 8
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Samples for "Authenticate with JWT (API)" guide
These are the samples that form the end result of this guide: [Authenticate with JWT (API)](https://developer.box.com/v2.0/docs/construct-jwt-claim-manually).
For more information on the steps in these samples, see the guide.
## Running the samples
First, ensure you have put your `config.json` at the root of this project. See the guide for more details.
```bash
# node
npm install jsonwebtoken axios
node sample.js
# python
pip install pyjwt cryptography requests
python sample.2.py # python 2
python sample.3.py # python 3
# java
cd sample.java
mvn install
mvn package
mvn dependency:copy-dependencies
java -cp "target/dependency/*:target/sample-1.0-SNAPSHOT.jar" com.box.developer.App
# c#
cd sample.dotnet
dotnet install
dotnet run
# ruby
gem install jwt
ruby sample.rb
# php
composer install
php sample.php
```
## License
This project has been released under the [Apache 2 license](LICENSE).
## Code of Conduct
All projects in this organization are governed by our [Code of Conduct](CODE_OF_CONDUCT.md).
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [devrel@box.com](mailto:devrel@box.com). All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.