# boolean_smtp_microsoft_authorize_url

> Filters the Microsoft identity platform authorize URL used for delegated OAuth.

Filter · Tier B · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_microsoft_authorize_url', $callback, 10, 2 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$url` | `string` | Default authorize endpoint for the given tenant. |
| `$tenant` | `string` | Microsoft tenant id, domain, or `common`/`organizations`/`consumers`. |

**Returns** `string` — The filtered URL.

## Fires in

- [app/Http/Controllers/OAuthController.php:634](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Http/Controllers/OAuthController.php#L634) — `BooleanSmtp\Http\Controllers\OAuthController::microsoftAuthorizeUrl()`

## Example

```php
add_filter( 'boolean_smtp_microsoft_authorize_url', function ( string $url, string $tenant ) {
    return $url;
}, 10, 2 );
```
