Skip to main content

oauth_clients

Overview

Nameoauth_clients
TypeResource
Idlinode.account.oauth_clients

Fields

NameDatatypeDescription
idstringThe OAuth Client ID. This is used to identify the client, and is a publicly-known value (it is not a secret).
labelstringThe name of this application. This will be presented to users when they are asked to grant it access to their Account.
publicbooleanIf this is a public or private OAuth Client. Public clients have a slightly different authentication workflow than private clients. See the <a target="_top" href="https://oauth.net/2/">OAuth spec</a> for more details.
redirect_uristringThe location a successful log in from <a target="_top" href="https://login.linode.com">https://login.linode.com</a> should be redirected to for this client. The receiver of this redirect should be ready to accept an OAuth exchange code and finish the OAuth exchange.
secretstringThe OAuth Client secret, used in the OAuth exchange. This is returned as &lt;REDACTED&gt; except when an OAuth Client is created or its secret is reset. This is a secret, and should not be shared or disclosed publicly.
statusstringThe status of this application. active by default.
thumbnail_urlstringThe URL where this client's thumbnail may be viewed, or null if this client does not have a thumbnail set.

Methods

NameAccessible byRequired ParamsDescription
getClientSELECTclientIdReturns information about a single OAuth client.
getClientsSELECTReturns a paginated list of OAuth Clients registered to your Account. OAuth Clients allow users to log into applications you write or host using their Linode Account, and may allow them to grant some level of access to their Linodes or other entities to your application.
createClientINSERTdata__label, data__redirect_uriCreates an OAuth Client, which can be used to allow users (using their Linode account) to log in to your own application, and optionally grant your application some amount of access to their Linodes or other entities.
deleteClientDELETEclientIdDeletes an OAuth Client registered with Linode. The Client ID and Client secret will no longer be accepted by <a target="_top" href="https://login.linode.com">https://login.linode.com</a>, and all tokens issued to this client will be invalidated (meaning that if your application was using a token, it will no longer work).
_getClientEXECclientIdReturns information about a single OAuth client.
_getClientThumbnailEXECclientIdReturns the thumbnail for this OAuth Client. This is a publicly-viewable endpoint, and can be accessed without authentication.
_getClientsEXECReturns a paginated list of OAuth Clients registered to your Account. OAuth Clients allow users to log into applications you write or host using their Linode Account, and may allow them to grant some level of access to their Linodes or other entities to your application.
getClientThumbnailEXECclientIdReturns the thumbnail for this OAuth Client. This is a publicly-viewable endpoint, and can be accessed without authentication.
resetClientSecretEXECclientIdResets the OAuth Client secret for a client you own, and returns the OAuth Client with the plaintext secret. This secret is not supposed to be publicly known or disclosed anywhere. This can be used to generate a new secret in case the one you have has been leaked, or to get a new secret if you lost the original. The old secret is expired immediately, and logins to your client with the old secret will fail.
setClientThumbnailEXECclientIdUpload a thumbnail for a client you own. You must upload an image file that will be returned when the thumbnail is retrieved. This image will be publicly-viewable.
updateClientEXECclientIdUpdate information about an OAuth Client on your Account. This can be especially useful to update the redirect_uri of your client in the event that the callback url changed in your application.