当前位置: 首页>>代码示例>>PHP>>正文


PHP GenericOAuth2ResourceOwner::getAuthorizationUrl方法代码示例

本文整理汇总了PHP中HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner::getAuthorizationUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericOAuth2ResourceOwner::getAuthorizationUrl方法的具体用法?PHP GenericOAuth2ResourceOwner::getAuthorizationUrl怎么用?PHP GenericOAuth2ResourceOwner::getAuthorizationUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner的用法示例。


在下文中一共展示了GenericOAuth2ResourceOwner::getAuthorizationUrl方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     $url = parent::getAuthorizationUrl($redirectUri, array_merge(array('access_type' => $this->options['access_type'], 'approval_prompt' => $this->options['approval_prompt'], 'request_visible_actions' => $this->options['request_visible_actions'], 'prompt' => $this->options['prompt']), $extraParameters));
     // This parameter have specific value (uses "&" as a separator of domains)
     if (null !== $this->options['hd']) {
         $url .= '&hd=' . implode('&', array_map('trim', explode(',', $this->options['hd'])));
     }
     return $url;
 }
开发者ID:ismailbaskin,项目名称:HWIOAuthBundle,代码行数:12,代码来源:GoogleResourceOwner.php

示例2: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     $extraOptions = array();
     if (isset($this->options['display'])) {
         $extraOptions['display'] = $this->options['display'];
     }
     if (isset($this->options['auth_type'])) {
         $extraOptions['auth_type'] = $this->options['auth_type'];
     }
     return parent::getAuthorizationUrl($redirectUri, array_merge($extraOptions, $extraParameters));
 }
开发者ID:jayesbe,项目名称:HWIOAuthBundle,代码行数:14,代码来源:FacebookResourceOwner.php

示例3: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     return parent::getAuthorizationUrl($redirectUri, array_merge(array('access_type' => $this->options['access_type'], 'approval_prompt' => $this->options['approval_prompt'], 'request_visible_actions' => $this->options['request_visible_actions'], 'hd' => $this->options['hd'], 'prompt' => $this->options['prompt']), $extraParameters));
 }
开发者ID:destillat,项目名称:HWIOAuthBundle,代码行数:7,代码来源:YoutubeResourceOwner.php

示例4: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     return parent::getAuthorizationUrl($redirectUri, array_merge(array('display' => $this->options['display']), $extraParameters));
 }
开发者ID:Aukraiser,项目名称:YetAnotherTweetsAnalyzer,代码行数:7,代码来源:FacebookResourceOwner.php

示例5: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     return parent::getAuthorizationUrl($redirectUri, array_merge(array('type' => 'web_server'), $extraParameters));
 }
开发者ID:ismailbaskin,项目名称:HWIOAuthBundle,代码行数:7,代码来源:ThirtySevenSignalsResourceOwner.php

示例6: getAuthorizationUrl

 /**
  * {@inheritDoc}
  */
 public function getAuthorizationUrl($redirectUri, array $extraParameters = array())
 {
     return parent::getAuthorizationUrl($redirectUri, $extraParameters + array('resource' => $this->options['resource']));
 }
开发者ID:ismailbaskin,项目名称:HWIOAuthBundle,代码行数:7,代码来源:AzureResourceOwner.php

示例7: testGetAuthorizationUrl

 public function testGetAuthorizationUrl()
 {
     $this->assertEquals('http://user.auth/?response_type=code&client_id=clientid&scope=&redirect_uri=http%3A%2F%2Fredirect.to%2F', $this->resourceOwner->getAuthorizationUrl('http://redirect.to/'));
 }
开发者ID:rafalwrzeszcz,项目名称:HWIOAuthBundle,代码行数:4,代码来源:GenericOAuth2ResourceOwnerTest.php


注:本文中的HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner::getAuthorizationUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。