|
Class: BasicAuthenticator (in Authentication)
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
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:]
copyrightCOPYRIGHT (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.
protocol
-
generateChallengeForRealm: aRealm
-
generate a challenge for a client
Usage example(s):
self generateChallengeForRealm:'realm'
|
-
mechanismName
-
answer the name of the mechanism as known in the protocols
-
newAuthenticationData
-
answer the authentication data used by this authenticator
accessing
-
secret
-
-
secret: something
-
-
username
-
-
username: something
-
initialization
-
initializeWith: authString
-
initialize the algorithm with the response parameters:
protocol
-
authenticateWith: authenticationData
-
authenticate - against authenticationData.
Raise BadCredentialsError if authentication fails
-
authenticateWithUserResolver: aOneArgBlock
-
authenticate - resolve the username via aOneArgBlock.
Raise BadCredentialsError if authentication fails
-
generateStaleChallenge
-
BasicAuthenticator does not support stale challenges
testing
-
isBasic
-
BasicAuthenticationData
|