Skip to content

Commit 0572f4d

Browse files
committed
fix authorization
2 parents 95c5ce6 + 3ad39fc commit 0572f4d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.ci/clean_cloudflare_cache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
files = [x for x in files if "dashboard-dev" in x]
2323

2424
headers = {
25-
'X-Auth-Email': os.environ["CLOUDFLARE_EMAIL"],
26-
'X-Auth-Key': os.environ["CLOUDFLARE_API_KEY"],
25+
'Authorization': 'Bearer ' + os.environ['CLOUDFLARE_API_KEY'],
2726
}
2827
zone = os.environ["CLOUDFLARE_ZONE"]
2928
print(requests.post(f"https://api.cloudflare.com/client/v4/zones/{zone}/purge_cache", json={'files': files}, headers=headers).text)

packages/tdb-dashboard/src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ button.graphiql-tab-add>svg
12381238
.qb-lite .group--header:not(:hover) .group--actions,
12391239
.qb-lite .rule_group:not(:hover) .group--drag-handler,
12401240
.qb-lite .rule_group:not(:hover) .group--actions {
1241-
opacity: 1;
1241+
opacity: 1;https://github.com/terminusdb/terminusdb-dashboard/blob/main/packages/tdb-dashboard/src/App.css
12421242
}
12431243

12441244
.accordion{

packages/tdb-dashboard/src/pages/GraphIqlEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function GraphIqlEditor({}) {
1414
if(!woqlClient) return
1515
const client = woqlClient.copy()
1616
const url = client.connectionConfig.branchBase("graphql")
17-
const autorization = woqlClient.localAuth() === "jwt" ? 'Bearer '+ woqlClient.localAuth().key : 'Basic '+ btoa(`${woqlClient.localAuth().user}:${woqlClient.localAuth().key}`)
17+
const autorization = woqlClient.localAuth().type === "jwt" ? 'Bearer '+ woqlClient.localAuth().key : 'Basic '+ btoa(`${woqlClient.localAuth().user}:${woqlClient.localAuth().key}`)
1818

1919
// TO BE REVIEW!!!!
2020
const fetcher = createGraphiQLFetcher({

0 commit comments

Comments
 (0)