AuthorizationCode Property

The authorization code that is exchanged for an access token.

Syntax

public var authorizationCode: String {
get {...}
set {...} }

Default Value

""

Remarks

When ClientProfile 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 GetAuthorization method will automatically exchange this code for a token with the authorization server specified in ServerTokenURL.

If this property is set before calling GetAuthorization 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.
Cloud Keys 2020 macOS Edition - Version 20.0 [Build 8157]