Workday OAuth - 错误未经授权的客户端

Workday OAuth - Error Unauthorized Client

我正在尝试创建与 Workday 的 OAuth 集成,但收到未经授权的客户端错误。我启用了 API 客户端,获得了秘密和访问密钥,并配置了一个指向我的服务器的重定向 URI。

当我访问 https://impl.workday.com/myTenant/authorize?response_type=token&client_id=myClientID 时,我被带到允许此应用访问我的 Workday 的屏幕,我点击接受,然后被重定向到我的服务器。但是,当我检查显示请求 URL 和 headers 的服务器日志时,这就是我所看到的:

URL: /workday?error=unauthorized_client

Headers: { host: 'localhost:9001',
connection: 'close',
'cache-control': 'max-age=0',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36',
'sec-fetch-mode': 'navigate',
'sec-fetch-user': '?1',
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'sec-fetch-site': 'cross-site',
referer: 'https://impl.workday.com/wday/authgwy/myTenant/authorize?response_type=token&client_id=myClientID',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'en-US,en;q=0.9'
}

我预计会收到 header "Location: https://example.com/#access_token=someAccessToken&token_type=Bearer" 但我收到未经授权的客户端错误。

更改 https://impl.workday.com/myTenant/authorize?response_type=token&client_id=myClientID to https://impl.workday.com/myTenant/authorize?response_type=code&client_id=myClientID 解决了问题。