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

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.
主站蜘蛛池模板: 徐州市| 平江县| 文水县| 内乡县| 和硕县| 定陶县| 中西区| 黄梅县| 昌江| 浑源县| 康定县| 昌宁县| 通许县| 西华县| 大荔县| 赫章县| 东明县| 丹凤县| 宜良县| 永新县| 青冈县| 林西县| 桑植县| 鄯善县| 富裕县| 藁城市| 夏津县| 天峻县| 贞丰县| 遵义市| 兰州市| 苗栗市| 元氏县| 义马市| 龙陵县| 施秉县| 西畴县| 林甸县| 宁国市| 常德市| 关岭|