PHP 클래스 Overtrue\LaravelWechat\Middleware\OAuthAuthenticate

파일 보기 프로젝트 열기: overtrue/laravel-wechat

공개 메소드들

메소드 설명
__construct ( Application $wechat ) Inject the wechat service.
handle ( Illuminate\Http\Request $request, Closure $next, string | null $scopes = null ) : mixed Handle an incoming request.

보호된 메소드들

메소드 설명
getTargetUrl ( Request $request ) : string Build the target business url.
isWeChatBrowser ( ) : boolean Detect current user agent type.
needReauth ( array $scopes ) : boolean Is different scopes.

메소드 상세

__construct() 공개 메소드

Inject the wechat service.
public __construct ( Application $wechat )
$wechat EasyWeChat\Foundation\Application

getTargetUrl() 보호된 메소드

Build the target business url.
protected getTargetUrl ( Request $request ) : string
$request Request
리턴 string

handle() 공개 메소드

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, string | null $scopes = null ) : mixed
$request Illuminate\Http\Request
$next Closure
$scopes string | null
리턴 mixed

isWeChatBrowser() 보호된 메소드

Detect current user agent type.
protected isWeChatBrowser ( ) : boolean
리턴 boolean

needReauth() 보호된 메소드

Is different scopes.
protected needReauth ( array $scopes ) : boolean
$scopes array
리턴 boolean