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

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.
主站蜘蛛池模板: 丹阳市| 沙雅县| 富源县| 新河县| 加查县| 东山县| 任丘市| 西和县| 建阳市| 陇川县| 汪清县| 仁寿县| 友谊县| 寻乌县| 汉源县| 宁晋县| 富阳市| 岳阳县| 读书| 临沭县| 当阳市| 恩施市| 江门市| 哈巴河县| 兴化市| 北川| 旬邑县| 财经| 宣武区| 祁东县| 连江县| 祁东县| 石首市| 宁海县| 阿勒泰市| 弥渡县| 云梦县| 乡宁县| 桂林市| 衡南县| 高阳县|