User.confirm_signup - Python API

Lets users confirm their intent to sign up with the SSO system. On input, a confirmation token must be sent. There is no response if the call succeeds, otherwise an SSOException may be raised.

self.sso.user.confirm_signup

confirm_signup(self, cid, confirm_token, current_app, remote_addr)

  • cid: Correlation ID used by audit log
  • confirm_token: Signup confirmation token obtained previously
  • current_app: Name of application the current user is issuing the call from
  • remote_addr: User's remote address
  • Returns: (None)
# -*- coding: utf-8 -*-

# Zato
from zato.server.service import Service

class ConfirmSignup(Service):
      def handle(self):

         # Read in from request
         confirm_token = 'MpPAHsQAc6_x2GlddSLfNE_mlFWqoS59'

         # Confirm signup; no exception = success
         self.sso.user.confirm_signup(self.cid, confirm_token, 'CRM', '127.0.0.1')