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
Léo-Paul Géneau
slapos.core
Commits
39372520
Commit
39372520
authored
May 18, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continue fixing: fetch and return expiration time.
parent
a24b66a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_grantToken.xml
...Item/portal_skins/vifib_hosting/WebSection_grantToken.xml
+3
-3
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_grantToken.xml
View file @
39372520
...
@@ -62,7 +62,7 @@ if state:\n
...
@@ -62,7 +62,7 @@ if state:\n
query_dict[\'state\'] = state\n
query_dict[\'state\'] = state\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n
try:\n
try:\n
token = person.Person_getBearerToken()\n
token
, expires
= person.Person_getBearerToken()\n
except ValueError:\n
except ValueError:\n
query_dict[\'error\'] = \'server_error\'\n
query_dict[\'error\'] = \'server_error\'\n
if \'#\' in redirect_uri:\n
if \'#\' in redirect_uri:\n
...
@@ -72,9 +72,9 @@ except ValueError:\n
...
@@ -72,9 +72,9 @@ except ValueError:\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
return context.REQUEST.RESPONSE.redirect( redirect_uri )\n
\n
\n
query_dict = dict(\n
query_dict = dict(\n
access_token=token
.getReference()
,\n
access_token=token,\n
token_type=\'bearer\',\n
token_type=\'bearer\',\n
expires_in=str(int((
token.getExpirationDate() - DateTime()) * 24 * 3600
)),\n
expires_in=str(int((
expires - DateTime().timeTime())
)),\n
)\n
)\n
if state:\n
if state:\n
query_dict[\'state\'] = state\n
query_dict[\'state\'] = state\n
...
...
master/bt5/vifib_web/bt/revision
View file @
39372520
369
370
\ No newline at end of file
\ 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