Skip to content

Commit 34762f8

Browse files
author
DraperStudio
committed
Add auth_base_uri option
1 parent 99cc882 commit 34762f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Provider.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public function setOpenId($openId)
3838
*/
3939
protected function getAuthUrl($state)
4040
{
41-
return $this->buildAuthUrlFromBase('https://open.weixin.qq.com/connect/oauth2/authorize', $state);
41+
return $this->buildAuthUrlFromBase($this->getConfig(
42+
'auth_base_uri',
43+
'https://open.weixin.qq.com/connect/oauth2/authorize'
44+
), $state);
4245
}
4346

4447
/**
@@ -124,4 +127,9 @@ public function getAccessToken($code)
124127

125128
return $this->parseAccessToken($response->getBody());
126129
}
130+
131+
public static function additionalConfigKeys()
132+
{
133+
return ['auth_base_uri'];
134+
}
127135
}

0 commit comments

Comments
 (0)