60 def prepareForStep(self, step, context):
61 if step == 10
and not context.isAuthenticated():
73 print "User is not authenticated. Redirect for authentication ..." 74 clientId = context.getConfigurationAttributes().get(
"client_id").getValue2()
75 redirectUri = context.getClaimsGatheringEndpoint() +
"?authentication=true" 76 authorizationUrl = context.getAuthorizationEndpoint() +
"?client_id=" + clientId +
"&redirect_uri=" + redirectUri +
"&scope=openid&response_type=code" 77 context.redirectToExternalUrl(authorizationUrl)
79 if step == 10
and context.isAuthenticated():
80 arc = context.getConnectSessionAttributes().get(
"acr")