Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
oauth_2-0_client_php
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Tobias Svensson
2012-06-11 14:17:43 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8262040b580750ff1ff9227fb6766727783078a5
8262040b
1 parent
e188ffce
Allow additional parameters to be passed to authorize call.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
OAuth2/Service.php
OAuth2/Service.php
View file @
8262040
...
...
@@ -69,13 +69,14 @@ class Service
/**
* redirect to authorize endpoint of service
*/
public
function
authorize
()
{
$parameters
=
array
(
public
function
authorize
(
array
$userParameters
=
array
()
)
{
$parameters
=
array_merge
(
$userParameters
,
array
(
'type'
=>
'web_server'
,
'client_id'
=>
$this
->
_client
->
getClientKey
(),
'redirect_uri'
=>
$this
->
_client
->
getCallbackUrl
(),
'response_type'
=>
'code'
,
);
));
if
(
$this
->
_scope
)
{
$parameters
[
'scope'
]
=
$this
->
_scope
;
}
...
...
Please
register
or
login
to post a comment