net.liftweb.openid.WellKnownEndpoints

object WellKnownEndpoints

object WellKnownEndpoints

 extends ScalaObject


WellKnownEndpoints know how to create an endpoint specific MessageExtension for retrieving the WellKnownAttributes Usefull for use in combination with the beforeAuth callback on OpenIDConsumer. The following example shows a method that can be passed to beforeAuth to add an extension that fetches the Email, FullName, FirstName & LastName attributes from the selected endpoint.
  def ext(di:DiscoveryInformation, authReq: AuthRequest): Unit = {
   import WellKnownAttributes._
   WellKnownEndpoints.findEndpoint(di) map {ep 
     => ep.makeAttributeExtension(List(Email, FullName, FirstName, LastName)) foreach {ex => authReq.addExtension(ex)}}
 }
 
See MetaOpenIDProtoUser for an example of how to extract the returned attribute values


Source: Extensions.scala(214)

 Constructors

def this

 Fields

Google.. val Google DiscoveredEndpoint
MyOpenId.. val MyOpenId DiscoveredEndpoint
Yahoo.. val Yahoo DiscoveredEndpoint
endpoints.. val endpoints
List of WellKnownEndpoints
List[DiscoveredEndpoint]

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
findEndpoint.. def findEndpoint(di : DiscoveryInformation)
Try to identify a WellKnownEndpoint from DiscoveryInformation
Box[DiscoveredEndpoint]
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.