Difference: VOMSX509ACRestfulInterface (1 vs. 4)

Revision 42008-10-06 - AndreaCeccanti

Line: 1 to 1
 
META TOPICPARENT name="InternalDiscussion"

VOMS WS X509 AC Restful Interface

Revision 32008-10-06 - AndreaCeccanti

Line: 1 to 1
 
META TOPICPARENT name="InternalDiscussion"

VOMS WS X509 AC Restful Interface

Line: 29 to 29
 The response is a simple XML document. The root element voms has a child element ac that contains the base64 encoded VOMS AC.
Changed:
<
<
>
>
  MIIGqTCCB....
Line: 41 to 41
 In case of errors, a simple XML document reporting an error message is returned. The root element voms has a child element error that contains the error message.
Changed:
<
<
>
>
  org.glite.security.voms.admin.database.NoSuchUserException: User '...' not found in database
Line: 66 to 66
 Content-Length: 158 Date: Thu, 02 Oct 2008 17:06:42 GMT
Changed:
<
<
...
>
>
...
 

Revision 22008-10-02 - AndreaCeccanti

Line: 1 to 1
 
META TOPICPARENT name="InternalDiscussion"

VOMS WS X509 AC Restful Interface

Line: 26 to 26
 

XML Response

Added:
>
>
The response is a simple XML document. The root element voms has a child element ac that contains the base64 encoded VOMS AC.

<xml version="1.0" encoding="UTF-8"?>
<voms>
  <ac>MIIGqTCCB....</ac>
</voms>

Error messages

In case of errors, a simple XML document reporting an error message is returned. The root element voms has a child element error that contains the error message.

 
Added:
>
>
org.glite.security.voms.admin.database.NoSuchUserException: User '...' not found in database
 
Added:
>
>

Example Request/Response

Request:

GET /voms/voms-ws/rest/ac HTTP/1.1
Host: devel13.cnaf.infn.it:8443
Accept: */*

Response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=E95A6C247E1DEDBF104491162A6C56CC; Path=/voms/voms-ws; Secure
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 158
Date: Thu, 02 Oct 2008 17:06:42 GMT

<xml version="1.0" encoding="UTF-8"?><voms><ac>...</ac></voms>

 
Deleted:
<
<

Error codes/messages

  -- AndreaCeccanti - 02 Oct 2008

Revision 12008-10-02 - AndreaCeccanti

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="InternalDiscussion"

VOMS WS X509 AC Restful Interface

URL

https://voms-server:8443/voms/vo-name/rest/ac

Description

This API is used by a member of VO vo-name to retrieve a valid VOMS AttributeCertificate.

The caller can specify which VOMS FQANs she wants in the AttributeCertificate using the requestedFQANs parameter. Requested FQANs are returned in the order in which they are requested.

The caller can request a different lifetime for the generated AttributeCertificate using the lifetime parameter. The lifetime of the AC is however bound to the maximum lifetime allowed by the server configuration.

Parameters

Required Name Type Description
optional requestedFQANs array of string The list of requested FQANs. FQANs are returned in the order they are requested
optional lifetime long Lifetime for the AC in seconds (used to ovverride the server default value, it is however bound to the maximum lifetime allowed by the server configuration

XML Response


Error codes/messages

-- AndreaCeccanti - 02 Oct 2008

 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback