From 23cc665e7364b1711b01ae5ecb7a9edf1370bfc2 Mon Sep 17 00:00:00 2001 From: MarkAltow <102956625+MarkAltow@users.noreply.github.com> Date: Tue, 16 May 2023 10:29:49 +0200 Subject: [PATCH 1/3] some comments --- lib/keycloak.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/keycloak.ex b/lib/keycloak.ex index 8102a39..2c60cf9 100644 --- a/lib/keycloak.ex +++ b/lib/keycloak.ex @@ -33,6 +33,12 @@ defmodule Keycloak do @doc """ Creates a `OAuth2.Client` using the keycloak configuration and attempts fetch a access token. + + ## Example + Get token based on client credentials: + + get_token!(grant_type: "client_credentials", code: "") + """ @spec get_token!(keyword(), keyword()) :: any() def get_token!(params \\ [], _headers \\ []) do From dbc629ec3b7148ebfaa0e3f2eea88717a55c04f5 Mon Sep 17 00:00:00 2001 From: MarkAltow <102956625+MarkAltow@users.noreply.github.com> Date: Tue, 16 May 2023 10:31:37 +0200 Subject: [PATCH 2/3] opt version to new --- .github/workflows/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 1f3a7cc..fcad44b 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -12,7 +12,7 @@ jobs: name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} strategy: matrix: - otp: ['24.1.7'] + otp: ['24.3.4.11'] elixir: ['1.13.0'] steps: - uses: actions/checkout@v2 From d8b301dd6f7a3588d94d59711f845d0ef72af677 Mon Sep 17 00:00:00 2001 From: MarkAltow <102956625+MarkAltow@users.noreply.github.com> Date: Tue, 16 May 2023 10:34:00 +0200 Subject: [PATCH 3/3] update config --- config/config.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index c3b2035..b22438b 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,6 +1,6 @@ # This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. -use Mix.Config +import Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this