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.

API

self.sso.user.confirm_signup

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

Signs up users with the SSO system.

Parameters:
  • cid (string) – Correlation ID used by audit log
  • confirm_token (string) – Signup confirmation token obtained previously
  • current_app (string) – Name of application the current user is issuing the call from
  • remote_addr (string) – User’s remote address
Return type:

(None)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division, print_function, unicode_literals

# 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')