title: PHP Codeigniter 4 Myth Auth X Telegram | Allowing Bot Webhook URL to bypass Myth Auth Login prerequisite
body: <p>I'm on CodeIgniter 4 project, and on applying Telegram Bot API to my project that have Myth Auth library before.</p>
  <p>I already set my <em>bot-update-handlers</em> or somelike that, to <strong>Webhook mode using URL like :</strong> <em><a href="https://api.telegram.org/botMY_TOKEN/setWebhook?url=https://ngrokaddress.io/telegramcontroller" rel="nofollow noreferrer">https://api.telegram.org/botMY_TOKEN/setWebhook?url=https://ngrokaddress.io/telegramcontroller</a></em></p>
  <p>And after that, i forgot that i've installed MythAuth too before, <strong>so</strong> Telegram can't deliver updates directly to my <code>TelegramController</code>, <strong>it will redirect to my login page first</strong>, remembering that MythAuth is doing it's job. And i have <em>HTTP 303 See Other Error</em>. Do you guys have any solution /tricks for this case ?</p>
  <p>For your reference(maybe), here is my <code>Config/Filters.php</code> :</p>
  <pre><code>    &lt;?php
      
      namespace Config;
      
      use CodeIgniter\Config\BaseConfig;
      use CodeIgniter\Filters\CSRF;
      use CodeIgniter\Filters\DebugToolbar;
      use CodeIgniter\Filters\Honeypot;
      use CodeIgniter\Filters\InvalidChars;
      use CodeIgniter\Filters\SecureHeaders;
      
      class Filters extends BaseConfig
      {
          /**
           * Configures aliases for Filter classes to
           * make reading things nicer and simpler.
           *
           * @var array
           */
          public $aliases = [
              'csrf'          =&gt; CSRF::class,
              'toolbar'       =&gt; DebugToolbar::class,
              'honeypot'      =&gt; Honeypot::class,
              'invalidchars'  =&gt; InvalidChars::class,
              'secureheaders' =&gt; SecureHeaders::class,
              'login'         =&gt; \Myth\Auth\Filters\LoginFilter::class,
              'role'          =&gt; \Myth\Auth\Filters\RoleFilter::class,
              'permission'    =&gt; \Myth\Auth\Filters\PermissionFilter::class,
          ];
      
          /**
           * List of filter aliases that are always
           * applied before and after every request.
           *
           * @var array
           */
          public $globals = [
              'before' =&gt; [
                  // 'honeypot',
                  // 'csrf',
                  // 'invalidchars',
                  'login'
              ],
              'after' =&gt; [
                  'toolbar',
                  // 'honeypot',
                  // 'secureheaders',
              ],
          ];
      
          /**
           * List of filter aliases that works on a
           * particular HTTP method (GET, POST, etc.).
           *
           * Example:
           * 'post' =&gt; ['csrf', 'throttle']
           *
           * @var array
           */
          public $methods = [];
      /**
       * List of filter aliases that should run on any
       * before or after URI patterns.
       *
       * Example:
       * 'isLoggedIn' =&gt; ['before' =&gt; ['account/*', 'profiles/*']]
       *
       * @var array
       */
      public $filters = [];
  }
  </code></pre>
  <p>And this is my <code>Config/Modules.php</code> :</p>
  <pre><code>&lt;?php
  
  namespace Config;
  
  use CodeIgniter\Modules\Modules as BaseModules;
  
  class Modules extends BaseModules
  {
      /**
       * --------------------------------------------------------------------------
       * Enable Auto-Discovery?
       * --------------------------------------------------------------------------
       *
       * If true, then auto-discovery will happen across all elements listed in
       * $aliases below. If false, no auto-discovery will happen at all,
       * giving a slight performance boost.
       *
       * @var bool
       */
      public $enabled = true;
  
      /**
       * --------------------------------------------------------------------------
       * Enable Auto-Discovery Within Composer Packages?
       * --------------------------------------------------------------------------
       *
       * If true, then auto-discovery will happen across all namespaces loaded
       * by Composer, as well as the namespaces configured locally.
       *
       * @var bool
       */
      public $discoverInComposer = true;
  
      /**
       * --------------------------------------------------------------------------
       * Auto-Discovery Rules
       * --------------------------------------------------------------------------
       *
       * Aliases list of all discovery classes that will be active and used during
       * the current application request.
       *
       * If it is not listed, only the base application elements will be used.
       *
       * @var string[]
       */
      public $aliases = [
          'events',
          'filters',
          'registrars',
          'routes',
          'services',
      ];
  }
  </code></pre>