Skip to content

Commit 1ccc1c1

Browse files
committed
Fix for new access token logic
1 parent 5ce0d69 commit 1ccc1c1

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
elixir 1.17.2-otp-27
2-
erlang 27.0.1
1+
elixir 1.17.3-otp-27
2+
erlang 27.1.3

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.7.0
4+
5+
* New OAuth2 Access Token endpoint
6+
37
## 0.6.4
48

59
* Treat account_no as string as it seems to be allowed (and not according to API documentation)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ by adding `bexio_api_client` to your list of dependencies in `mix.exs`:
1111
```elixir
1212
def deps do
1313
[
14-
{:bexio_api_client, "~> 0.6.4"}
14+
{:bexio_api_client, "~> 0.7.0"}
1515
]
1616
end
1717
```

lib/bexio_api_client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ defmodule BexioApiClient do
8585
Application.get_env(:bexio_api_client, :req_options, [])
8686
|> Req.new()
8787

88-
idp_url = Application.get_env(:bexio_api_client, :idp_url, "https://idp.bexio.com/token")
88+
idp_url = Application.get_env(:bexio_api_client, :idp_url, "https://auth.bexio.com/realms/bexio/protocol/openid-connect/token")
8989

9090
case Req.post(
9191
idp_req,

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ defmodule BexioApiClient.MixProject do
44
def project do
55
[
66
app: :bexio_api_client,
7-
version: "0.6.4",
8-
elixir: "~> 1.14",
7+
version: "0.7.0",
8+
elixir: "~> 1.16",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),
1111
package: package(),

0 commit comments

Comments
 (0)