IPWorks Auth 2020 Python Edition

Questions / Feedback?

state Property

Opaque value used to maintain state between the request and response.

Syntax

def get_state() -> str: ...
def set_state(value: str) -> None: ...

state = property(get_state, set_state)

Default Value

""

Remarks

This property optionally holds a string value which will be returned by the authorization server with the response.

Any value may be specified here and it will be returned exactly as it was sent. This can be used to maintain state within the application, and also may be used for security purposes (for instance to prevent Cross-Site Request Forgery). The contents of this property are treated as an opaque value.

When client_profile is set to cfApplication the on_return_url event provides the state value returned by the authorization server.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 Python Edition - Version 20.0 [Build 8155]