Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
8496d9b7
Commit
8496d9b7
authored
Dec 13, 2009
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- nothing changed really
parent
65b108ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
intranet-rest-procs.tcl
tcl/intranet-rest-procs.tcl
+3
-0
No files found.
tcl/intranet-rest-procs.tcl
View file @
8496d9b7
...
...
@@ -464,6 +464,7 @@ ad_proc -private im_rest_get_object_type {
ad_proc -private im_rest_authenticate
{
{
-debug 1
}
-query_hash_values:required
}
{
Determine the autenticated user
...
...
@@ -481,6 +482,7 @@ ad_proc -private im_rest_authenticate {
# Check for HTTP
"basic"
authorization
# Example: Authorization=Basic cHJvam9wOi5mcmFiZXI=
set basic_auth
[
ns_set get
$header
_vars
"Authorization"
]
set basic_auth_userpass
""
set basic_auth_username
""
set basic_auth_password
""
if
{[
regexp
{
^
([
a-zA-Z_
]
+
)
\
(
.*
)
$
}
$basic
_auth match method userpass_base64
]}
{
...
...
@@ -491,6 +493,7 @@ ad_proc -private im_rest_authenticate {
if
{
""
==
$basic
_auth_user_id
}
{
set basic_auth_user_id
[
db_string userid
"select party_id from parties where lower(email) = lower(:basic_auth_username)"
-default
""
]
}
if
{
$debug
}
{
ns_log Notice
"im_rest_authenticate: basic_auth=
$basic
_auth, basic_auth_username=
$basic
_auth_username, basic_auth_password=
$basic
_auth_password"
}
# Check for OpenACS
"Cookie"
auth
set cookie_auth_user_id
[
ad_get_user_id
]
...
...
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