Home

Test [[${clientDetailsDto.clientId}]]

针对不同的grant_type提供不同的测试URL, 完整的OAuth测试请访问spring-oauth-client项目.

请先输入client_secret:

Test [authorization_code]

输入每一步必要的信息后点击其下面的链接地址.

  1. 从 spring-oauth-server获取 'code'
    redirect_uri:
    /oauth/authorize?client_id={{clientId}}&redirect_uri={{redirectUri}}&response_type=code&scope={{scope}} GET

  2. 用 'code' 换取 'access_token'
    输入第一步获取的code:
    POST
Test [password]

输入username, password 后点击链接地址.

username:
password:
POST
Test [device_code]

输入redirect_uri 后点击链接地址. 获取access_token后注意查看redirect_uri的hash部分(#号后边部分)

redirect_uri:

/oauth/authorize?client_id={{clientId}}&client_secret={{clientSecret}}&response_type=token&scope={{scope}}&redirect_uri={{implicitRedirectUri}} GET

Test [client_credentials]

点击链接地址即可测试

POST
Test [refresh_token]

输入refresh_token 后点击链接地址.

refresh_token:
POST