eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Authentication::BasicAuthenticator':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: BasicAuthenticator (in Authentication)


Inheritance:

   Object
   |
   +--Authentication::Authenticator
      |
      +--Authentication::BasicAuthenticator

Package:
stx:goodies/authentication
Category:
Net-Authentication
Version:
rev: 1.6 date: 2011/11/25 13:33:45
user: sr
file: Authentication__BasicAuthenticator.st directory: goodies/authentication
module: stx stc-classLibrary: authentication
Author:
Stefan Vogel (stefan@zwerg)

Description:


This class implements Basic Authentication as defined in RFC 2617.

Note that Basic Authentication is insecure and should be used only for backward compatibility.


[instance variables:]
    username        String      the username as supplied by the client in its credentials
    password        String      the password as supplied by the client in its credentials

[class variables:]


Related information:



Class protocol:

protocol
o  generateChallengeForRealm: aRealm
generate a challenge for a client

usage example(s):

        self generateChallengeForRealm:'realm'

o  mechanismName
answer the name of the mechanism as known in the protocols

o  newAuthenticationData
answer the authentication data used by this authenticator


Instance protocol:

accessing
o  secret

o  secret: something

o  username

o  username: something

initialization
o  initializeWith: authString
initialize the algorithm with the response parameters:

protocol
o  authenticateWith: authenticationData
authenticate - against authenticationData.
Raise BadCredentialsError if authentication fails

o  authenticateWithUserResolver: aOneArgBlock
authenticate - resolve the username via aOneArgBlock.
Raise BadCredentialsError if authentication fails

o  generateStaleChallenge
BasicAuthenticator does not support stale challenges

testing
o  isBasic


Private classes:

    BasicAuthenticationData


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 04:00:05 GMT