AuthorizationCode Property

The authorization code that is exchanged for an access token.

Object Oriented Interface

public function getAuthorizationCode();
public function setAuthorizationCode($value);

Procedural Interface

cloudkeys_oauth_get($res, 2 );
cloudkeys_oauth_set($res, 2, $value );

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.

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 PHP Edition - Version 20.0 [Build 8157]