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
d241bd3e
Commit
d241bd3e
authored
Jan 08, 2014
by
munawer-t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos
parent
7c9f5b3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
OpenId.php
extensions/yii/authclient/OpenId.php
+2
-2
No files found.
extensions/yii/authclient/OpenId.php
View file @
d241bd3e
...
@@ -599,7 +599,7 @@ class OpenId extends BaseClient implements ClientInterface
...
@@ -599,7 +599,7 @@ class OpenId extends BaseClient implements ClientInterface
{
{
$params
=
[];
$params
=
[];
/* We always use SREG 1.1, even if the server is advertising only support for 1.0.
/* We always use SREG 1.1, even if the server is advertising only support for 1.0.
That's because it's fully backwards compatib
i
le with 1.0, and some providers
That's because it's fully backwards compatible with 1.0, and some providers
advertise 1.0 even if they accept only 1.1. One such provider is myopenid.com */
advertise 1.0 even if they accept only 1.1. One such provider is myopenid.com */
$params
[
'openid.ns.sreg'
]
=
'http://openid.net/extensions/sreg/1.1'
;
$params
[
'openid.ns.sreg'
]
=
'http://openid.net/extensions/sreg/1.1'
;
if
(
!
empty
(
$this
->
requiredAttributes
))
{
if
(
!
empty
(
$this
->
requiredAttributes
))
{
...
@@ -663,7 +663,7 @@ class OpenId extends BaseClient implements ClientInterface
...
@@ -663,7 +663,7 @@ class OpenId extends BaseClient implements ClientInterface
$params
[
'openid.ax.count.'
.
$alias
]
=
$count
;
$params
[
'openid.ax.count.'
.
$alias
]
=
$count
;
}
}
// Don't send empty ax.requied and ax.if_available.
// Don't send empty ax.requi
r
ed and ax.if_available.
// Google and possibly other providers refuse to support ax when one of these is empty.
// Google and possibly other providers refuse to support ax when one of these is empty.
if
(
!
empty
(
$requiredAttributes
))
{
if
(
!
empty
(
$requiredAttributes
))
{
$params
[
'openid.ax.required'
]
=
implode
(
','
,
$requiredAttributes
);
$params
[
'openid.ax.required'
]
=
implode
(
','
,
$requiredAttributes
);
...
...
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