Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.core
Commits
95c5beef
Commit
95c5beef
authored
Apr 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid eating fragment.
Client might want to do anything with it, so append responso to such.
parent
0786e092
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
12 deletions
+28
-12
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_denyToken.xml
...eItem/portal_skins/vifib_hosting/WebSection_denyToken.xml
+11
-6
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_grantToken.xml
...Item/portal_skins/vifib_hosting/WebSection_grantToken.xml
+16
-5
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_denyToken.xml
View file @
95c5beef
...
...
@@ -50,19 +50,24 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
>
from ZTUtils import make_query\n
\n
from
DateTime import DateTime
\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
from
ZTUtils import make_query
\n
\n
query_dict = dict()\n
url = redirect_uri.split(\'#\')[0]\n
\n
if state:\n
query_dict[\'state\'] = state\n
\n
query_dict[\'error\'] = \'access_denied\'\n
return context.REQUEST.RESPONSE.redirect( url + \'#\' + make_query(query_dict) )\n
</string>
</value>
if \'#\' in redirect_uri:\n
redirect_uri += \'&\' + make_query(query_dict)\n
else:\n
redirect_uri += \'#\' + make_query(query_dict)\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_grantToken.xml
View file @
95c5beef
...
...
@@ -50,12 +50,13 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from ZTUtils import make_query\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
from ZTUtils import make_query\n
\n
from DateTime import DateTime\n
\n
query_dict = dict()\n
url = redirect_uri.split(\'#\')[0]\n
\n
if state:\n
query_dict[\'state\'] = state\n
...
...
@@ -64,7 +65,11 @@ try:\n
token = context.getPortalObject().bearer_token_module.BearerTokenModule_addNewToken(person.getReference())\n
except ValueError:\n
query_dict[\'error\'] = \'server_error\'\n
return context.REQUEST.RESPONSE.redirect( url + \'#\' + make_query(query_dict) )\n
if \'#\' in redirect_uri:\n
redirect_uri += \'&\' + make_query(query_dict)\n
else:\n
redirect_uri += \'#\' + make_query(query_dict)\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
\n
query_dict = dict(\n
access_token=token.getReference(),\n
...
...
@@ -76,8 +81,14 @@ if state:\n
\n
query = make_query(query_dict)\n
\n
return context.REQUEST.RESPONSE.redirect( url + \'#\' + query )\n
</string>
</value>
if \'#\' in redirect_uri:\n
redirect_uri += \'&\' + make_query(query_dict)\n
else:\n
redirect_uri += \'#\' + make_query(query_dict)\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
...
...
master/bt5/vifib_web/bt/revision
View file @
95c5beef
366
\ No newline at end of file
367
\ No newline at end of file
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