Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » [User Error] Passed invalid authentication method

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2189 Views
  • Ben Gribaudo
    Community Member
    181 Posts

    [User Error] Passed invalid authentication method Link to this post


    If I access the URL http://internal/Security/LoginForm/ directly, a "[User Error] Passed invalid authentication method" error is displayed. It seems like this URL should display (or redirect to) the login form instead of an error.

    What do you think?



    [User Error] Passed invalid authentication method
    GET /Security/LoginForm/

    Line 232 in C:\xampp\htdocs\members\sapphire\security\Security.php

    223       if(isset($this->requestParams['AuthenticationMethod'])) {
    224          $authenticator = trim($_REQUEST['AuthenticationMethod']);
    226          $authenticators = Authenticator::get_authenticators();
    227          if(in_array($authenticator, $authenticators)) {
    228             return call_user_func(array($authenticator, 'get_login_form'), $this);
    229          }
    230       }
    232       user_error('Passed invalid authentication method', E_USER_ERROR);
    233    }
    236 /**
    237     * Get the login forms for all available authentication methods
    238     *


    * Passed invalid authentication method
    Line 232 of Security.php
    * Security->LoginForm(SS_HTTPRequest)
    Line 196 of Controller.php
    * Controller->handleAction(SS_HTTPRequest)
    Line 135 of RequestHandler.php
    * RequestHandler->handleRequest(SS_HTTPRequest)
    Line 150 of Controller.php
    * Controller->handleRequest(SS_HTTPRequest)
    Line 282 of Director.php
    * Director::handleRequest(SS_HTTPRequest,Session)
    Line 127 of Director.php
    * Director::direct(Security/LoginForm/)
    Line 122 of main.php

  • dalesaurus
    Community Member
    283 Posts

    Re: [User Error] Passed invalid authentication method Link to this post

    Nope, you're trying to directly access the a Form obect for creation. This is a special form with the pieces that tie in to the Security and Member systems.

    Why would you be trying to access this form directly in the first place? The very robust /Security/login was provided for a reason

  • pinkp
    Community Member
    168 Posts

    Re: [User Error] Passed invalid authentication method Link to this post

    I also get that error, but I don't know how it occurs, I just gets emailed to me from time to time..
    Can someone explain why it happens and if it is anything to be concerned about?


  • anselm.dk
    Community Member
    18 Posts

    Re: [User Error] Passed invalid authentication method Link to this post

    Same here,
    I keep getting these every week or so, from a 2.3.x installation.

    Does there exist any patch for this?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.