IPWorks Cloud 2020 Python Edition

Questions / Feedback?

authorization_code Property

The authorization code that is exchanged for an access token.

Syntax

def get_authorization_code() -> str: ...
def set_authorization_code(value: str) -> None: ...

authorization_code = property(get_authorization_code, set_authorization_code)

Default Value

""

Remarks

When client_profile is set to cfWebServer (WebServer flow) the authorization server will return a code when the user is re-directed from the authorization server back to your website. This code is returned as a query string parameter and the class will automatically populate this property with that value.

Normally this property will only be informational, as the get_authorization method will automatically exchange this code for a token with the authorization server specified in server_token_url.

If this property is set before calling get_authorization the class will attempt to exchange the code with the authorization server for an access token.

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