mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
Got authentication working against live poniverse
This commit is contained in:
parent
0004a15b9c
commit
aff57a092c
2 changed files with 37 additions and 6 deletions
|
@ -80,4 +80,35 @@
|
|||
$imageType = Image::$ImageTypes[$type];
|
||||
return URL::to('t' . $this->id . '/cover_' . $imageType['name'] . '.png?' . $this->cover_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the token value for the "remember me" session.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRememberToken() {
|
||||
// TODO: Implement getRememberToken() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the token value for the "remember me" session.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setRememberToken($value) {
|
||||
// TODO: Implement setRememberToken() method.
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the column name for the "remember me" token.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRememberTokenName() {
|
||||
return "nothing";
|
||||
}
|
||||
|
||||
public function setNothingAttribute($nothing) {
|
||||
}
|
||||
}
|
|
@ -2,11 +2,11 @@
|
|||
return [
|
||||
'version' => 1,
|
||||
'urls' => [
|
||||
'api' => 'http://api.poniverse.dev:83/v1/',
|
||||
'register' => 'http://poniverse.dev:83/register?site=ponyfm',
|
||||
'auth' => 'http://poniverse.dev:83/login/authorize',
|
||||
'token' => 'http://api.poniverse.dev:83/v1/oauth2/token'
|
||||
'api' => 'https://api.poniverse.net/v1/',
|
||||
'register' => 'https://poniverse.net/register?site=pony.fm',
|
||||
'auth' => 'https://poniverse.net/oauth/authorize',
|
||||
'token' => 'https://poniverse.net/oauth/access_token'
|
||||
],
|
||||
'client_id' => 'spa-ponyfm',
|
||||
'secret' => 'mwRW6lfm19G9TaN60J0oMq2kapzU83n4'
|
||||
'client_id' => 'AAopdYDbn6JarV0Wo025gYQNxS1VXcj8GCa0raSC',
|
||||
'secret' => 'cxlA1jgGRZEPp8hg4VNB5v2gx7aY6DUtJSwUUHzT'
|
||||
];
|
Loading…
Reference in a new issue