# OAuthToken-password

Type: OAuthClient & object

Schema: [OAuthToken-password](https://sourcey-peertube.pages.dev/api-rest-reference/models/oauthtoken-password.md)

allOf:
  Reference: [OAuthClient](https://sourcey-peertube.pages.dev/api-rest-reference/models/oauthclient.md); Type: OAuthClient

  Type: object
  
  - `grant_type` (optional)
    Type: string
    
    enum: ["password"]
  
  - `username` (optional)
    Reference: [username](https://sourcey-peertube.pages.dev/api-rest-reference/models/username.md); Type: username
    
    immutable name of the user, used to find or mention its actor
    
    minLength: 1
    
    maxLength: 50
    
    pattern: "/^[a-z0-9._]+$/"
    
    Example:
    
    ```json
    "chocobozzz"
    ```
  
  - `password` (optional)
    Reference: [password](https://sourcey-peertube.pages.dev/api-rest-reference/models/password.md); Type: password, password
    
    minLength: 6
    
    maxLength: 50
  
  - `externalAuthToken` (optional)
    Type: string
    
    If you want to authenticate using an external authentication token you got from an auth plugin (like `peertube-plugin-auth-openid-connect` for example) instead of a password or a refresh token, provide it here.