我正在尝试使用 HWIOAuthBundle 配置我的 oauth2 服务器,我想澄清一下 HWIOAuthBundle 期望正确响应配置的内容infos_url
?
我猜它期待一个json文件。那么,它的领域是什么?如果你有链接,我会很高兴。
hwi_oauth:
firewall_name: main
resource_owners:
battlenet:
type: oauth2
client_id: "%client_id%"
client_secret: "%client_secret%"
access_token_url: %path%/oauth/token
authorization_url: %path%/oauth/authorize
infos_url: %path%/user/me
scope: "read"
user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
paths:
identifier: id
nickname: id
realname: id
谢谢 ;)