> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication in Bruno

export const BrunoButton = ({collectionUrl, width = 160, height = 40, className = '', style = {}}) => {
  const encodedUrl = encodeURIComponent(collectionUrl);
  const buttonUrl = `https://fetch.usebruno.com?url=${encodedUrl}`;
  return <div style={{
    display: 'flex',
    justifyContent: 'center',
    width: '100%',
    margin: '2rem 0',
    ...style
  }} className={className}>
      <a href={buttonUrl} target="_blank" rel="noopener noreferrer" style={{
    textDecoration: 'none',
    display: 'inline-block'
  }}>
        <img src="https://fetch.usebruno.com/button.svg" alt="Fetch in Bruno" width={width} height={height} noZoom style={{
    width: `${width}px`,
    height: `${height}px`,
    display: 'block',
    cursor: 'pointer'
  }} />
      </a>
    </div>;
};

Bruno allows you to send authentication details with your API requests.
Authentication methods can be set on the request level or collection level, if you want all of your requests to use the same method.

## Try it out

Explore the [oauth-keycloak](https://github.com/bruno-collections/oauth-keyclock) sample collections for real-world OAuth2 flows to walk through each grant type step by step:

<BrunoButton collectionUrl="https://github.com/bruno-collections/oauth-keyclock.git" width={160} height={40} />

<Info>
  Some APIs will require a digital certificate to establish a client's identity.
  You can add your certificate authority (CA) or client certificates to Bruno.
  See [Add and Manage Certificates](./add-and-manage-certs) for more
  information.
</Info>

You can pass auth details along with any request in Bruno in the header, body, or as a parameter.
If you enter your auth details to the `Auth` tab of your requests, we will automatically populate the relevant parts of the request for your chosen auth method.

### Bruno currently supports the following authentication protocols:

* [OAuth 1.0](/auth/oauth1)
* [OAuth 2.0](/auth/oauth2-2.0/overview)
* [AWS Sig v4](/auth/aws-signature)
* [Basic Auth](/auth/basic)
* [Bearer Auth](/auth/bearer)
* [Digest Auth](/auth/digest)
* [NTLM](/auth/ntlm)
