The Fifth World

Get OAuth 2.0 providers

This endpoint returns a list of OAuth 2.0 providers that a member has added to her account. This endpoint works almost exactly like GET /members/providers, except where that endpoint returns only your own providers, this endpoint can return any member’s providers, given a member ID — but only a logged-in member with administrative access can use it.

Request

HTTP Headers
HTTP Header Value
Authorization A valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE
Path Parameters
Path parameter Value
id The member ID of the account you’d like to find a list of providers for.

Examples

Example Request
GET /v1/members/1/auths HTTP/1.1 Host: api.thefifthworld.com Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Response

If you’ve provided a valid JSON Web Token that verifies you as a member with administrative access, the API responds with a 200 HTTP status and a JSON object. This object has a single property, auths, which provides an array of strings identifying those providers that the specified member has connected to her account.

If the API could not verify your authentication, or it could verify it but you don’t have administration priveleges, it responds with a 401 HTTP status.

Example

Example Response
{ "auths": [ "github", "discord" ] }