Commit a24b66a4 authored by Łukasz Nowak's avatar Łukasz Nowak

Use simplified Bearer Token API.

parent b08e870e
...@@ -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 = context.getPortalObject().bearer_token_module.BearerTokenModule_addNewToken(person.getReference())\n token = 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
......
368 369
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment