GET /oauth/auz/grants/{GrantID}/provider/resources/{Resource}
Returns the logo for the OAuth provider, based on the specified GrantID, as part of the OAuth grant provisioning UI. In the Community Manager developer portal, the logo is uploaded as part of the OAuth Provider domain setup (OAuth Provider domain setup, Branding tab). It can be retrieved using this operation. The resource name is always logo.
Authorization Roles/Permissions: Must be the resource owner.
This topic includes the following sections:
HTTP Method
GET
URL
https://{oauth-provider-url}/oauth/auz/grants/{GrantID}/provider/resources/{Resource}
Sample Request
The example below shows a request for the logo for the OAuth provider.
Sample Request URL
https://{oauth-provider-url}/oauth/auz/grants/ge6ij9k4fbea/provider/resources/logo
Sample request headers
GET /oauth/auz/grants/ge6ij9k4fbea/provider/resources/logo HTTP/1.1 Accept: image/png,image/*;q=0.8,*/*;q=0.5
Sample request body
Not applicable.
Request Headers
For general information on request header values, refer to HTTP Request Headers.
Header | Description |
---|---|
Accept | image/jpg |
Request Parameters
Parameter | Parm Type | Data Type | Required | Description |
---|---|---|---|---|
GrantID | Path | string | Required | The unique ID for a specific instance of an OAuth grant. |
Resource | Path | String | Required | The logo for the OAuth provider. |
Response
If successful, this operation returns HTTP status code 200, with the requested logo.
Sample Response
The sample response below shows successful completion of this operation.
Sample response headers
HTTP/1.1 200 OK Content-Type: image/jpeg Expires: Wed, 22 Jul 2015 15:40:57 GMT
Sample response body
The response body is the logo for the OAuth provider.
Response Headers
For general information on response header values, refer to HTTP Response Headers.
Header | Description |
---|---|
Content-Type | image/jpg |
Response Body
The response body is the logo for the OAuth provider.
Error Codes/Messages
If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.
Item | Value |
---|---|
500 | An error occurred processing the call. |
More information about Akana OAuth API error messages.