Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: RFC / Audit: Mojo Login Example

by haj (Vicar)
on Mar 24, 2020 at 22:06 UTC ( [id://11114618]=note: print w/replies, xml ) Need Help??


in reply to Re^4: RFC / Audit: Mojo Login Example
in thread RFC / Audit: Mojo Login Example

Well, yes, plain text logging is fine. Apache and nginx log files are machine-readable. There is a RFC for the meaning of status codes, and LogFileFormat together with the server's documentation provide information about the fields you can expect.

But that's not enough: The typical form-based login will result in a redirection for both success (to whatever the application decides, probably just back to the page which caused a redirect to the login form in the first place) and failure (back to login). Frontend servers also don't log information from POST requests. Therefore, it is up to the application to provide the login name and the result. "Make the log entries machine-readable" doesn't imply a particular format, but rather: document how a log collector software can interpret your entries.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114618]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found