An open API service indexing awesome lists of open source software.

https://github.com/propeldata/propel-oauth-2-examples

Code examples for fetching oauth-2 credentials to use with the Propel GraphQL API
https://github.com/propeldata/propel-oauth-2-examples

graphql jwt jwt-authentication jwt-token oauth2 oauth2-client

Last synced: 3 months ago
JSON representation

Code examples for fetching oauth-2 credentials to use with the Propel GraphQL API

Awesome Lists containing this project

README

          

# Multi-Language OAuth Token Fetcher

Welcome to the Multi-Language OAuth Token Fetcher project. This repository contains examples and tests for fetching OAuth tokens using various programming languages. The purpose of this project is to illustrate how to implement OAuth 2.0 client credentials flow in different tech stacks.

## Project Structure

The project is organized into multiple directories, each corresponding to a specific programming language. Within each directory, you'll find a practical implementation example and tests to verify the correct creation of OAuth tokens.

Here's what you can expect in each directory:

- `/javascript`: Contains JavaScript example using `simple-oauth2`.
- `/typescript`: Contains TypeScript example using `simple-oauth2`.
- `/python`: Contains Python example using `requests-oauthlib`.
- `/golang`: Contains Go example using `golang.org/x/oauth2`.
- `/dotnet`: Contains .NET example using `IdentityModel`.
- `/rust`: Contains Rust example using `reqwest`.
- `/ruby`: Contains Ruby example using `oauth2`.
- `/java`: Contains Java example using `scribejava-core`.

Each directory has its own `README.md` file with detailed instructions on setting up the environment, installing dependencies, and running the tests.

## Getting Started

To get started with this project:

1. Clone the repository to your local machine:
git clone
2. Navigate into the directory of the language you're interested in.
3. Follow the language-specific `README.md` for instructions on how to install dependencies and run the project.

## Prerequisites

Before running any code, make sure you have the following:

- Git installed on your system.
- Appropriate language-specific environment setup (links to each environment setup guide are provided in the language directories).

## Language-Specific Guides

For detailed instructions on how to run each language example, please refer to the respective `README.md` files:

- [JavaScript README](./javascript/README.md)
- [TypeScript README](./typescript/README.md)
- [Python README](./python/README.md)
- [Golang README](./goland/README.md)
- [DotNet README](./dotnet/README.md)
- [Rust README](./rust/README.md)
- [Ruby README](./ruby/README.md)
- [Java README](./java/README.md)

## Contributing

We welcome contributions from the community. If you wish to contribute to this project, please fork the repository, make your changes, and create a pull request.

## Support

If you encounter any issues or require assistance, please open an issue in the repository, and a maintainer will help you.

## License

This project is licensed under the [MIT License](./LICENSE).

## Acknowledgments

- Thanks to all of our customers who want to empower _their_ customers with better access to data!

---

Made with 💜. Powered by [Propel](https://www.propeldata.com)! 🚀