https://redmine.dataone.org/https://redmine.dataone.org/favicon.ico2016-01-12T22:04:54ZDataONE TasksInfrastructure - Task #7193: Review CN service implementation support for token authhttps://redmine.dataone.org/issues/7193?journal_id=268542016-01-12T22:04:54ZRob Nahfrnahf@epscor.unm.edu
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> changed from <i>Chris Jones</i> to <i>Rob Nahf</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>30</i></li></ul><p>this might have to be done at the component level: metacat, cn-rest-service (resolve), cn-node-registry, and others?</p>
Infrastructure - Task #7193: Review CN service implementation support for token authhttps://redmine.dataone.org/issues/7193?journal_id=270602016-02-10T23:02:15ZRob Nahfrnahf@epscor.unm.edu
<ul><li><strong>Category</strong> set to <i>d1_cn_service</i></li><li><strong>translation missing: en.field_remaining_hours</strong> set to <i>0.0</i></li><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>30</i> to <i>100</i></li></ul><p>CN-rest switched from using CertificateManager to PortalCertificateManager in April of 2015.</p>
<p>For example:</p>
<pre>public void updateNodeCapabilities(MultipartHttpServletRequest fileRequest, HttpServletResponse response, @PathVariable String nodeId) throws InvalidToken, ServiceFailure, InvalidRequest, IdentifierNotUnique, NotAuthorized, NotImplemented, NotFound {
Session session = PortalCertificateManager.getInstance().getSession(fileRequest);
</pre>