Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polyvariant/sttp-oauth2
OAuth2 client library implemented in Scala using sttp
https://github.com/polyvariant/sttp-oauth2
cats-effect oauth2 scala sttp
Last synced: about 17 hours ago
JSON representation
OAuth2 client library implemented in Scala using sttp
- Host: GitHub
- URL: https://github.com/polyvariant/sttp-oauth2
- Owner: polyvariant
- License: apache-2.0
- Created: 2020-12-08T14:03:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T21:08:16.000Z (5 months ago)
- Last Synced: 2025-01-13T10:07:20.607Z (8 days ago)
- Topics: cats-effect, oauth2, scala, sttp
- Language: Scala
- Homepage: https://sttp-oauth2.polyvariant.org
- Size: 1.74 MB
- Stars: 74
- Watchers: 9
- Forks: 22
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
[release]: https://github.com/polyvariant/sttp-oauth2/releases/latest
[release-badge]: https://img.shields.io/github/release/polyvariant/sttp-oauth2.svg# sttp-oauth2 - OAuth2 client library for Scala
This library aims to provide easy integration with OAuth2 providers based on [OAuth2 RFC](https://tools.ietf.org/html/rfc6749) using [sttp](https://github.com/softwaremill/sttp) client. It uses [circe](https://github.com/circe/circe) for JSON serialization/deserialization.
Currently it supports methods (grant types) for obtaining authorization:
- [Authorization code](https://tools.ietf.org/html/rfc6749#section-4.1)
- [Password grant](https://tools.ietf.org/html/rfc6749#section-4.3)
- [Client credentials](https://tools.ietf.org/html/rfc6749#section-4.4)## Quick start
To use this library add the following dependency to your `build.sbt`
Versions 0.19.0 and newer
```scala
"org.polyvariant" %% "sttp-oauth2" % "x.y.z"
```Versions up to 0.18.0
```scala
"com.ocadotechnology" %% "sttp-oauth2" % "x.y.z"
```The latest release is: [![release-badge][]][release]
## Documentation
Visit the documentation at [https://sttp-oauth2.polyvariant.org](https://sttp-oauth2.polyvariant.org) for usage instructions.
## Contributing
Feel free to submit feature requests and bug reports under Issues.
## License
sttp-oauth2 is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) (the "License"); you may not use this software except in compliance with the License.
## Honorable mentions
sttp-oauth2 was initially created by [Ocado Technology](https://github.com/ocadotechnology)