Skip to content
Snippets Groups Projects
Commit a724cc18 authored by Patrick Radtke's avatar Patrick Radtke
Browse files

Add template for Yahoo OIDC

parent b715f5db
Branches
Tags
Loading
...@@ -23,4 +23,27 @@ class ConfigTemplate { ...@@ -23,4 +23,27 @@ class ConfigTemplate {
// Improve log lines // Improve log lines
'label' => 'google' 'label' => 'google'
]; ];
const YahooOIDC = [
'authoauth2:OAuth2',
// *** Yahoo Endpoints ***
'urlAuthorize' => 'https://api.login.yahoo.com/oauth2/request_auth',
'urlAccessToken' => 'https://api.login.yahoo.com/oauth2/get_token',
'urlResourceOwnerDetails' => 'https://api.login.yahoo.com/openid/v1/userinfo',
'scopes' => array(
'openid',
// Yahoo doesn't support standard OIDC claims, like email and profile
// 'email',
// 'profile',
// Yahoo prefers the sdpp-w scope for getting acess to user's email, however it prompts user for write access. Leaving it
// out makes things work fine IF you picked being able to edit private profile when creating your app
// 'sdpp-w',
),
'scopeSeparator' => ' ',
// Prefix attributes so we can use the standard oidc2name attributemap
'attributePrefix' => 'oidc.',
// Improve log lines
'label' => 'yahoo'
];
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment