Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -36,7 +36,8 @@ if ( isset( \IPS\Request::i()->state ) and $explodedData = explode( '-', \IPS\Re
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* OAuth 2 */
|
||||
if ( isset( \IPS\Request::i()->access_token ) )
|
||||
{
|
||||
foreach ( array( 'access_token', 'token_type', 'expires_in', 'scope', 'state' ) as $k )
|
||||
@@ -47,6 +48,17 @@ if ( isset( \IPS\Request::i()->state ) and $explodedData = explode( '-', \IPS\Re
|
||||
}
|
||||
}
|
||||
}
|
||||
/* OAuth 1 */
|
||||
elseif ( isset( \IPS\Request::i()->oauth_token ) )
|
||||
{
|
||||
foreach ( array( 'oauth_token', 'oauth_verifier', 'state' ) as $k )
|
||||
{
|
||||
if ( isset( \IPS\Request::i()->$k ) )
|
||||
{
|
||||
$destination = $destination->setQueryString( $k, \IPS\Request::i()->$k );
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif ( isset( \IPS\Request::i()->code ) )
|
||||
{
|
||||
$destination = $destination->setQueryString( 'code', \IPS\Request::i()->code );
|
||||
|
||||
Reference in new issue
Block a user