This is a very simple app to that tests the Client Credentials Flow in the Curity Identity Server using the scrogson / oauth2 client library.
- Set configurations in
config/config.exs
to match your deployment of the Curity Identity Server - Run
mix deps.get
to download dependencies - 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"
}
This sample code is licensed under the Apache v. 2 license.
For questions, contact Curity AB:
Copyright (C) 2020 Curity AB.