# at.ducs.oauth.login

> Published by [ducs.at](https://lexicon.garden/identity/did:plc:c5ljrscuf2xu4oovnafzoqlg)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:c5ljrscuf2xu4oovnafzoqlg/at.ducs.oauth.login)
- [Documentation](https://lexicon.garden/lexicon/did:plc:c5ljrscuf2xu4oovnafzoqlg/at.ducs.oauth.login/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:c5ljrscuf2xu4oovnafzoqlg/at.ducs.oauth.login/examples)

## Definitions

### `at.ducs.oauth.login`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `handle` | `string` | Yes |  |
| `client_id` | `string` (uri) | No |  |
| `redirect_uri` | `string` (uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `href` | `string` (uri) | Yes |  |

#### Errors

- **userNotFound**: The specified user couldn't be found
- **userAlreadyHasHome**: The specified user already has a home authority

## Raw Schema

```json
{
  "id": "at.ducs.oauth.login",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "userNotFound",
          "description": "The specified user couldn't be found"
        },
        {
          "name": "userAlreadyHasHome",
          "description": "The specified user already has a home authority"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "handle",
          "redirect_uri"
        ],
        "properties": {
          "handle": {
            "type": "string"
          },
          "client_id": {
            "type": "string",
            "format": "uri"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
