Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curityio/elixir-client-demo
A simple Elixir client demo app
https://github.com/curityio/elixir-client-demo
client-credentials-flow client-demo code-example elixir oauth2
Last synced: 6 days ago
JSON representation
A simple Elixir client demo app
- Host: GitHub
- URL: https://github.com/curityio/elixir-client-demo
- Owner: curityio
- License: apache-2.0
- Created: 2021-04-06T20:08:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T13:52:17.000Z (almost 4 years ago)
- Last Synced: 2024-12-03T11:11:56.413Z (2 months ago)
- Topics: client-credentials-flow, client-demo, code-example, elixir, oauth2
- Language: Elixir
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elixir Client Demo App
[![Quality](https://img.shields.io/badge/quality-experiment-red)](https://curity.io/resources/code-examples/status/)
[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)This is a very simple app to that tests the Client Credentials Flow in the Curity Identity Server using the [scrogson / oauth2](https://github.com/scrogson/oauth2) client library.
## Running the example
1. Set configurations in `config/config.exs` to match your deployment of the Curity Identity Server
2. Run `mix deps.get` to download dependencies
3. Run `mix test`The output on the console should be similar to:
```
Getting token from Curity using Client Credentials...
{
"access_token" => "dcde70ab-4a0f-43ef-8d98-d7b36d0ed17a",
"expires_in" => 300,
"scope" => "",
"token_type" => "bearer"
}
```## License
This sample code is licensed under the [Apache v. 2 license](LICENSE).
## Questions
For questions, contact Curity AB:
> [email protected]
>
> https://curity.ioCopyright (C) 2020 Curity AB.