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.9 date: 2022/11/03 15:09:33
user: cg
file: Authentication__BasicAuthenticator.st directory: goodies/authentication
module: stx stc-classLibrary: authentication

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:]

copyright

COPYRIGHT (c) 2006 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:37:44 GMT