PHP Class Invisnik\LaravelSteamAuth\SteamAuth

Inheritance: implements Invisnik\LaravelSteamAuth\SteamAuthInterface
Afficher le fichier Open project: invisnik/laravel-steam-auth Class Usage Examples

Méthodes publiques

Свойство Type Description
$authUrl string
$steamId integer | null
$steamInfo SteamInfo

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
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

Method Details

__construct() public méthode

Create a new SteamAuth instance
public __construct ( Illuminate\Http\Request $request ) : void
$request Illuminate\Http\Request
Résultat void

getAuthUrl() public méthode

Returns the login url
public getAuthUrl ( ) : string
Résultat string

getParams() public méthode

Get param list for openId validation
public getParams ( ) : array
Résultat array

getSteamId() public méthode

Returns the steam id
public getSteamId ( ) : boolean | string
Résultat boolean | string

getUserInfo() public méthode

Returns the SteamUser info
public getUserInfo ( ) : SteamInfo
Résultat SteamInfo

parseInfo() public méthode

Get user data from steam api
public parseInfo ( ) : void
Résultat void

parseResults() public méthode

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

parseSteamID() public méthode

Parse the steamID from the OpenID response
public parseSteamID ( ) : void
Résultat void

redirect() public méthode

Returns the redirect response to login
public redirect ( ) : Illuminate\Http\RedirectResponse | Redirector
Résultat Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

validate() public méthode

Checks the steam login
public validate ( ) : boolean
Résultat boolean

Property Details

$authUrl public_oe property

public string $authUrl
Résultat string

$steamId public_oe property

public int|null $steamId
Résultat integer | null

$steamInfo public_oe property

public SteamInfo,Invisnik\LaravelSteamAuth $steamInfo
Résultat SteamInfo