X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;h=42a300cd6eb5ce57cf2f47f1dd8d81ce92730e21;hp=aa77c9c778b7d4f9597bb142fa9a6f7ea68766ad;hb=4b4d38842b2383a70a54bcadb493505950b469dd;hpb=636ba9f78f6ce788549fbfa7f1a1507d0579e978 diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index aa77c9c..42a300c 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -1,11 +1,11 @@ =head1 NAME -Catalyst::Manual::Tutorial::Authentication - Catalyst Tutorial - Part 5: Authentication +Catalyst::Manual::Tutorial::Authentication - Catalyst Tutorial - Chapter 5: Authentication =head1 OVERVIEW -This is B for the Catalyst tutorial. +This is B for the Catalyst tutorial. L @@ -58,9 +58,9 @@ L Now that we finally have a simple yet functional application, we can focus on providing authentication (with authorization coming next in -Part 6). +Chapter 6). -This part of the tutorial is divided into two main sections: 1) basic, +This chapter of the tutorial is divided into two main sections: 1) basic, cleartext authentication and 2) hash-based authentication. You can checkout the source code for this example from the catalyst @@ -78,7 +78,7 @@ application. First, we add both user and role information to the database (we will add the role information here although it will not be used until the -authorization section, Part 6). Create a new SQL script file by opening +authorization section, Chapter 6). Create a new SQL script file by opening C in your editor and insert: -- @@ -208,7 +208,7 @@ C: The code for these three sets of updates is obviously very similar to the edits we made to the C, C, and C -classes created in Part 3. +classes created in Chapter 3. Note that we do not need to make any change to the C schema file. It simply tells DBIC to load all @@ -302,7 +302,7 @@ information in C and automatically load this information into Cconfig> using the L plugin. -As discussed in Part 3 of the tutorial, Catalyst has recently +As discussed in Chapter 3 of the tutorial, Catalyst has recently switched from a default config file format of YAML to L (an apache-like format). In case you are using a version of Catalyst earlier than v5.7014, delete the @@ -747,15 +747,15 @@ login as before. When done, click the "logout" link on the login page =head1 USING THE SESSION FOR FLASH -As discussed in the previous part of the tutorial, C allows you to -set variables in a way that is very similar to C, but it will -remain set across multiple requests. Once the value is read, it -is cleared (unless reset). Although C has nothing to do with -authentication, it does leverage the same session plugins. Now that -those plugins are enabled, let's go back and update the "delete -and redirect with query parameters" code seen at the end of the -L part of the -tutorial to take advantage of C. +As discussed in the previous chapter of the tutorial, C allows +you to set variables in a way that is very similar to C, but it +will remain set across multiple requests. Once the value is read, it +is cleared (unless reset). Although C has nothing to do with +authentication, it does leverage the same session plugins. Now that +those plugins are enabled, let's go back and update the "delete and +redirect with query parameters" code seen at the end of the L chapter of the tutorial to +take advantage of C. First, open C and modify C to match the following (everything after the model search line of code