Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b776706c
Commit
b776706c
authored
Jan 01, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenId::buildAxParams() fixed to add "openid.ax.required" parameter if required…
OpenId::buildAxParams() fixed to add "openid.ax.required" parameter if required attributes are not empty.
parent
f9249849
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
OpenId.php
extensions/yii/authclient/OpenId.php
+6
-6
No files found.
extensions/yii/authclient/OpenId.php
View file @
b776706c
...
...
@@ -638,8 +638,8 @@ class OpenId extends BaseClient implements ClientInterface
$params
[
'openid.ax.mode'
]
=
'fetch_request'
;
$aliases
=
[];
$counts
=
[];
$required
=
[];
$optional
=
[];
$required
Attributes
=
[];
$optional
Attributes
=
[];
foreach
([
'requiredAttributes'
,
'optionalAttributes'
]
as
$type
)
{
foreach
(
$this
->
$type
as
$alias
=>
$field
)
{
if
(
is_int
(
$alias
))
{
...
...
@@ -665,11 +665,11 @@ class OpenId extends BaseClient implements ClientInterface
// Don't send empty ax.requied and ax.if_available.
// Google and possibly other providers refuse to support ax when one of these is empty.
if
(
$required
)
{
$params
[
'openid.ax.required'
]
=
implode
(
','
,
$required
);
if
(
!
empty
(
$requiredAttributes
)
)
{
$params
[
'openid.ax.required'
]
=
implode
(
','
,
$required
Attributes
);
}
if
(
$optional
)
{
$params
[
'openid.ax.if_available'
]
=
implode
(
','
,
$optional
);
if
(
!
empty
(
$optionalAttributes
)
)
{
$params
[
'openid.ax.if_available'
]
=
implode
(
','
,
$optional
Attributes
);
}
}
return
$params
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment