Skip to content

Commit

Permalink
fix: remove redundant slash from base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrijne-at-Vito committed Nov 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bf2704b commit 391e9a4
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions examples/fields/get_fields.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import json
import os

from dotenv import load_dotenv

load_dotenv()

# ---------------------------------------------------------
# MAIN
# ---------------------------------------------------------
from pywig import Wig
from ./pywig import Wig

wig = Wig()
wig.authenticate_basic(username=os.getenv('username'), password=os.getenv('password'))
wig.authenticate_basic(username='demo@vito.be', password='demo123456')
print(wig._auth.get_token())

fields = wig.get_fields()

2 changes: 1 addition & 1 deletion pywig/config/prod.conf
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@ client_id=wig
token_url=https://sso.terrascope.be/auth/realms/watchitgrow/protocol/openid-connect/token

[api]
base=https://app.watchitgrow.be/proxy/es_gateway/es5-gateway-keycloak/
base=https://app.watchitgrow.be/proxy/es_gateway/es5-gateway-keycloak

0 comments on commit 391e9a4

Please sign in to comment.