Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
6c88c023
Commit
6c88c023
authored
7 years ago
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentication update
parent
7b7b0378
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
olapy/core/services/xmla.py
olapy/core/services/xmla.py
+9
-2
No files found.
olapy/core/services/xmla.py
View file @
6c88c023
...
...
@@ -60,8 +60,15 @@ class XmlaProviderService(ServiceBase):
if
config_parser
.
xmla_authentication
():
# TODO call labster login or create login with token (according to labster db)
if
ctx
.
transport
.
req_env
[
'QUERY_STRING'
]
!=
'mouadh'
:
return
''
if
ctx
.
transport
.
req_env
[
'QUERY_STRING'
]
!=
'admin'
:
# TODO try to 'monkey-patch' spyne and change response function name so we can authentication error to user
return
etree
.
fromstring
(
"""
<soap11env:Fault>
<faultcode>soap11env:Server</faultcode>
<faultstring>Authentication failed</faultstring>
<faultactor></faultactor>
</soap11env:Fault>
"""
)
if
request
.
RequestType
==
"DISCOVER_DATASOURCES"
:
return
discover_tools
.
discover_datasources_response
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment