[Seaside] Problems with HTTP basic authentication in 2.5a

C. David Shaffer cdshaffer at acm.org
Sat May 8 18:51:04 CEST 2004


I'm having problems with authenticateWith:during: in a task.  A very 
simple example is attached.  The link's callback never gets invoked.  
I'm working under Squeak 3.6 final in Linux.  Similar code worked under 
2.3 (although the method name was different and I think that it took an 
authentication block).  Any ideas?

David

-------------- next part --------------
WAComponent subclass: #SimpleComponent
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'BasicAuthTest-Views'!

!SimpleComponent methodsFor: 'rendering' stamp: 'cds 5/8/2004 12:46'!
renderContentOn: html 
	html
		anchorWithAction: [self doIt]
		text: 'do it'! !


!SimpleComponent methodsFor: 'as yet unclassified' stamp: 'cds 5/8/2004 12:47'!
doIt
	self halt! !


WATask subclass: #SimpleTask
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'BasicAuthTest-Views'!

!SimpleTask methodsFor: 'rendering' stamp: 'cds 5/8/2004 12:45'!
go
	| sc |
	self authenticateWith: self during: [
		sc _ SimpleComponent new.
		self call: sc]! !


!SimpleTask methodsFor: 'as yet unclassified' stamp: 'cds 5/8/2004 12:46'!
verifyPassword: p forUser: u
	^ p = u! !

"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!

SimpleTask class
	instanceVariableNames: ''!

!SimpleTask class methodsFor: 'seaside' stamp: 'cds 5/8/2004 12:45'!
canBeRoot
	^ true! !


More information about the Seaside mailing list