##// END OF EJS Templates
caches: use individual namespaces per user to prevent beaker caching problems....
caches: use individual namespaces per user to prevent beaker caching problems. - especially for mysql in case large number of data in caches there could be critical errors storing cache, and thus preventing users from authentication. This is caused by the fact that we used single namespace for ALL users. It means it grew as number of users grew reaching mysql single column limit. This changes the behaviour and now we use namespace per-user it means that each user-id will have it's own cache namespace fragmenting maximum column data to a single user cache. Which we should never reach.

File last commit:

r2122:de425417 default
r2572:5b07455a default
Show More
permissions_auth_token_access.mako
64 lines | 1.6 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / permissions / permissions_auth_token_access.mako
permissions: expose new view that lists all available views for usage in whitelist access.
r1943
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('View whitelist')}</h3>
</div>
<div class="panel-body">
<div class="">
<p class="pr-description">
View white list defines a set of views that can be accessed using auth token without the need to login.
Adding ?auth_token = SECRET_TOKEN to the url authenticates this request as if it
came from the the logged in user who owns this authentication token.
E.g. adding `RepoFilesView.repo_file_raw` allows to access a raw diff using such url:
http[s]://server.com/{repo_name}/raw/{commit_id}/{file_path}?auth_token=SECRET_TOKEN
White list can be defined inside `${c.whitelist_file}` under `${c.whitelist_key}=` setting
white-list-access: improved UI.
r2122 Currently the following views are set:
permissions: expose new view that lists all available views for usage in whitelist access.
r1943 </p>
white-list-access: improved UI.
r2122 <pre>
permissions: expose new view that lists all available views for usage in whitelist access.
r1943 % for entry in c.whitelist_views:
${entry}
% endfor
white-list-access: improved UI.
r2122 </pre>
permissions: expose new view that lists all available views for usage in whitelist access.
r1943
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('List of views available for usage in whitelist access')}</h3>
</div>
<div class="panel-body">
<div class="">
<table class="rctable ip-whitelist">
<tr>
<th>Active</th>
<th>View FQN</th>
<th>URL pattern</th>
</tr>
% for route_name, view_fqn, view_url, active in c.view_data:
<tr>
white-list-access: improved UI.
r2122 <td class="td-x">
% if active:
${h.bool2icon(active)}
% endif
</td>
permissions: expose new view that lists all available views for usage in whitelist access.
r1943 <td class="td-x">${view_fqn}</td>
<td class="td-x" title="${route_name}">${view_url}</td>
</tr>
% endfor
</table>
</div>
</div>
</div>