官术网_书友最值得收藏!

There's more...

As presented by this recipe, the grant types allowed for using refresh tokens are the Authorization Code and Password grant types. Notice that both grant types are aimed at confidential clients. That is, applications capable of using both described grant types are client types which are able to store confidential data in a safe manner. When working with public clients, you are not supposed to use refresh tokens because public clients can't store the refresh token safely.

The request for an access token when using refresh tokens must also be encrypted by SSL/TLS, as mentioned before, initiating any interaction between the OAuth 2.0 Provider and the client.

If you are using a custom UserDetailsService, you have to inject it within the AuthorizationServer configuration class and have to set up the UserDetailsService property for AuthorizationServerEndpointsConfigurer (the same as way we did for AuthenticationManager). This has to be set up because when trying to refresh an access token, the Resource Owner could have redefined her credentials which could invalidate the permission granted before.
主站蜘蛛池模板: 东明县| 韩城市| 高碑店市| 拉萨市| 黑山县| 文安县| 新闻| 汉中市| 石棉县| 凌云县| 龙海市| 包头市| 轮台县| 新龙县| 九江市| 通州市| 子洲县| 奎屯市| 台安县| 淳化县| 榆社县| 平陆县| 龙岩市| 个旧市| 呼和浩特市| 乌兰察布市| 渭源县| 元氏县| 阜阳市| 乐业县| 海南省| 竹北市| 阳春市| 文山县| 恩施市| 中方县| 万宁市| 周口市| 桂平市| 广南县| 信阳市|