Download MODELBAKER 2.1
Transcript
BASI C H T T P AUTHENTICATION In this chapter we wi# discuss basic HTTP authentication using ModelBaker. Wikipedia defines basic access authentication as “In the context of an HTTP transaction, the basic access authentication is a method designed to a#ow a web browser, or other client program, to provide credentials – in the form of a user name and password – when making a request.” Step 1: Setting up the Controller To have an action become protected, we need to tell the action’s Controller. To setup a Controller for authentication, do the following: • In the ‘Contro#ers’ tab (⌘2), select the controller to which you would like to add Authentication. • Select the ‘Basic HTTP Authentication’ user icon. • Enable the checkbox for ‘Basic HTTP Authentication’. • Enter ‘basic’ in the ‘Type’ textfield. • Enter a desired message (i.e. ‘Protected for Members Only’) in the ‘Realm:’ textfield. • Click the ‘New’ (+) button to add a user name and password (i.e.‘foo’ and ‘bar’). ModelBaker - The User’s Manual" 46