Skip to content

Commit

Permalink
feat: update auth client
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrijne-at-Vito committed Nov 26, 2024
1 parent 3c66e2e commit 06c37f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions examples/fields/get_fields.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@


import os
from dotenv import load_dotenv
load_dotenv()
# ---------------------------------------------------------
# MAIN
# ---------------------------------------------------------
from ./pywig import Wig

from pywig import Wig
wig = Wig()
wig.authenticate_basic(username='[email protected]', password='demo123456')
print(wig._auth.get_token())
wig.authenticate_basic(username=os.getenv('username'), password=os.getenv('password'))

fields = wig.get_fields()

Expand Down
2 changes: 1 addition & 1 deletion pywig/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.8'
__version__ = '0.3.9'
2 changes: 1 addition & 1 deletion pywig/config/prod.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[auth]
client_id=wig
client_id=wig-client
token_url=https://sso.terrascope.be/auth/realms/watchitgrow/protocol/openid-connect/token

[api]
Expand Down

0 comments on commit 06c37f2

Please sign in to comment.