gluu
公開メンバ関数 | 公開変数類 | 全メンバ一覧
idfirst.PersonAuthentication クラス
idfirst.PersonAuthentication の継承関係図
Inheritance graph
idfirst.PersonAuthentication 連携図
Collaboration graph

公開メンバ関数

def __init__ (self, currentTimeMillis)
 
def init (self, configurationAttributes)
 
def destroy (self, configurationAttributes)
 
def getApiVersion (self)
 
def isValidAuthenticationMethod (self, usageType, configurationAttributes)
 
def getAlternativeAuthenticationMethod (self, usageType, configurationAttributes)
 
def authenticate (self, configurationAttributes, requestParameters, step)
 
def prepareForStep (self, configurationAttributes, requestParameters, step)
 
def getExtraParametersForStep (self, configurationAttributes, step)
 
def getCountAuthenticationSteps (self, configurationAttributes)
 
def getPageForStep (self, configurationAttributes, step)
 
def logout (self, configurationAttributes, requestParameters)
 

公開変数類

 currentTimeMillis
 

詳解

構築子と解体子

◆ __init__()

def idfirst.PersonAuthentication.__init__ (   self,
  currentTimeMillis 
)
17  def __init__(self, currentTimeMillis):
18  self.currentTimeMillis = currentTimeMillis
19 

関数詳解

◆ authenticate()

def idfirst.PersonAuthentication.authenticate (   self,
  configurationAttributes,
  requestParameters,
  step 
)
65  def authenticate(self, configurationAttributes, requestParameters, step):
66  return False
67 

◆ destroy()

def idfirst.PersonAuthentication.destroy (   self,
  configurationAttributes 
)
24  def destroy(self, configurationAttributes):
25  print "Identifier First. Destroyed successfully"
26  return True
27 

◆ getAlternativeAuthenticationMethod()

def idfirst.PersonAuthentication.getAlternativeAuthenticationMethod (   self,
  usageType,
  configurationAttributes 
)
35  def getAlternativeAuthenticationMethod(self, usageType, configurationAttributes):
36  print "Identifier First. getAlternativeAuthenticationMethod"
37 
38  identity = CdiUtil.bean(Identity)
39  user_name = identity.getCredentials().getUsername()
40  print "Identifier First. Inspecting user %s" % user_name
41 
42  attributes=identity.getSessionId().getSessionAttributes()
43  attributes.put("roUserName", user_name)
44 
45  acr = None
46  try:
47  userService = CdiUtil.bean(UserService)
48  foundUser = userService.getUserByAttribute("uid", user_name)
49 
50  if foundUser == None:
51  print "Identifier First. User does not exist"
52  return ""
53 
54  attr = configurationAttributes.get("acr_attribute").getValue2()
55  acr=foundUser.getAttribute(attr)
56  #acr="u2f" or "otp" or "twilio_sms", etc...
57  if acr == None:
58  acr = "basic"
59  except:
60  print "Identifier First. Error looking up user or his preferred method"
61 
62  print "Identifier First. new acr value %s" % acr
63  return acr
64 

◆ getApiVersion()

def idfirst.PersonAuthentication.getApiVersion (   self)
28  def getApiVersion(self):
29  return 1
30 

◆ getCountAuthenticationSteps()

def idfirst.PersonAuthentication.getCountAuthenticationSteps (   self,
  configurationAttributes 
)
76  def getCountAuthenticationSteps(self, configurationAttributes):
77  print "Identifier First. getCountAuthenticationSteps called"
78  return 2
79 

◆ getExtraParametersForStep()

def idfirst.PersonAuthentication.getExtraParametersForStep (   self,
  configurationAttributes,
  step 
)
72  def getExtraParametersForStep(self, configurationAttributes, step):
73  print "Identifier First. getExtraParametersForStep %s" % str(step)
74  return None
75 

◆ getPageForStep()

def idfirst.PersonAuthentication.getPageForStep (   self,
  configurationAttributes,
  step 
)
80  def getPageForStep(self, configurationAttributes, step):
81  print "Identifier First. getPageForStep called %s" % str(step)
82  if step == 1:
83  return "/auth/idfirst/idfirst_login.xhtml"
84  return ""
85 

◆ init()

def idfirst.PersonAuthentication.init (   self,
  configurationAttributes 
)
20  def init(self, configurationAttributes):
21  print "Identifier First. Initialized successfully"
22  return True
23 

◆ isValidAuthenticationMethod()

def idfirst.PersonAuthentication.isValidAuthenticationMethod (   self,
  usageType,
  configurationAttributes 
)
31  def isValidAuthenticationMethod(self, usageType, configurationAttributes):
32  print "Identifier First. isValidAuthenticationMethod called"
33  return False
34 

◆ logout()

def idfirst.PersonAuthentication.logout (   self,
  configurationAttributes,
  requestParameters 
)
86  def logout(self, configurationAttributes, requestParameters):
87  print "Identifier First. logout called"
88  return True
89 

◆ prepareForStep()

def idfirst.PersonAuthentication.prepareForStep (   self,
  configurationAttributes,
  requestParameters,
  step 
)
68  def prepareForStep(self, configurationAttributes, requestParameters, step):
69  print "Identifier First. prepareForStep %s" % str(step)
70  return True
71 

メンバ詳解

◆ currentTimeMillis

idfirst.PersonAuthentication.currentTimeMillis

このクラス詳解は次のファイルから抽出されました: