PHP 클래스 Invisnik\LaravelSteamAuth\SteamAuth

상속: implements Invisnik\LaravelSteamAuth\SteamAuthInterface
파일 보기 프로젝트 열기: invisnik/laravel-steam-auth 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$authUrl string
$steamId integer | null
$steamInfo SteamInfo

공개 메소드들

메소드 설명
__construct ( Illuminate\Http\Request $request ) : void Create a new SteamAuth instance
getAuthUrl ( ) : string Returns the login url
getParams ( ) : array Get param list for openId validation
getSteamId ( ) : boolean | string Returns the steam id
getUserInfo ( ) : SteamInfo Returns the SteamUser info
parseInfo ( ) : void Get user data from steam api
parseResults ( string $results ) : Illuminate\Support\Fluent Parse openID reponse to fluent object
parseSteamID ( ) : void Parse the steamID from the OpenID response
redirect ( ) : Illuminate\Http\RedirectResponse | Redirector Returns the redirect response to login
validate ( ) : boolean Checks the steam login

비공개 메소드들

메소드 설명
buildUrl ( string $return = null ) : string Build the Steam login URL
requestIsValid ( ) : boolean Validates if the request object has required stream attributes.
validateUrl ( string $url ) : boolean Validates a given URL, ensuring it contains the http or https URI Scheme

메소드 상세

__construct() 공개 메소드

Create a new SteamAuth instance
public __construct ( Illuminate\Http\Request $request ) : void
$request Illuminate\Http\Request
리턴 void

getAuthUrl() 공개 메소드

Returns the login url
public getAuthUrl ( ) : string
리턴 string

getParams() 공개 메소드

Get param list for openId validation
public getParams ( ) : array
리턴 array

getSteamId() 공개 메소드

Returns the steam id
public getSteamId ( ) : boolean | string
리턴 boolean | string

getUserInfo() 공개 메소드

Returns the SteamUser info
public getUserInfo ( ) : SteamInfo
리턴 SteamInfo

parseInfo() 공개 메소드

Get user data from steam api
public parseInfo ( ) : void
리턴 void

parseResults() 공개 메소드

Parse openID reponse to fluent object
public parseResults ( string $results ) : Illuminate\Support\Fluent
$results string openid reponse body
리턴 Illuminate\Support\Fluent

parseSteamID() 공개 메소드

Parse the steamID from the OpenID response
public parseSteamID ( ) : void
리턴 void

redirect() 공개 메소드

Returns the redirect response to login
public redirect ( ) : Illuminate\Http\RedirectResponse | Redirector
리턴 Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

validate() 공개 메소드

Checks the steam login
public validate ( ) : boolean
리턴 boolean

프로퍼티 상세

$authUrl 공개적으로 프로퍼티

public string $authUrl
리턴 string

$steamId 공개적으로 프로퍼티

public int|null $steamId
리턴 integer | null

$steamInfo 공개적으로 프로퍼티

public SteamInfo,Invisnik\LaravelSteamAuth $steamInfo
리턴 SteamInfo