Deactivated User
06/01/2018, 6:04 AMDeactivated User
06/01/2018, 6:05 AM$_REQUEST
global, that merges $_GET
and $_POST
for convenience.Deactivated User
06/01/2018, 6:05 AMmkporwit
06/01/2018, 6:09 AMDeactivated User
06/01/2018, 6:11 AMcode
and state
could come either from get or post parameters?mkporwit
06/01/2018, 6:11 AMDeactivated User
06/01/2018, 6:11 AMmkporwit
06/01/2018, 6:11 AMmkporwit
06/01/2018, 6:12 AMmkporwit
06/01/2018, 6:12 AMDeactivated User
06/01/2018, 6:13 AMDeactivated User
06/01/2018, 6:13 AMDeactivated User
06/01/2018, 6:13 AMDeactivated User
06/01/2018, 6:13 AMmkporwit
06/01/2018, 6:13 AMmkporwit
06/01/2018, 6:14 AMDeactivated User
06/01/2018, 6:14 AMmkporwit
06/01/2018, 6:16 AMDeactivated User
06/01/2018, 6:16 AMreceive Parameters + merge with getParameters
mkporwit
06/01/2018, 6:18 AMapplication/x-www-form-urlencoded
?mkporwit
06/01/2018, 6:19 AMmkporwit
06/01/2018, 6:19 AMDeactivated User
06/01/2018, 6:20 AMFormPost
feature doing this, configurable to limit the payload size, would do, right?mkporwit
06/01/2018, 6:21 AMDeactivated User
06/01/2018, 6:23 AMreceive
twice, the second time you call it, it has an empty body to process
(thinking out loud)
At any rate, I think this could be treat separately. For oauth, we should honor the post_ and we can determine that from the get parameter.mkporwit
06/01/2018, 6:26 AMmkporwit
06/01/2018, 6:27 AMmkporwit
06/01/2018, 6:27 AMmkporwit
06/01/2018, 6:31 AMcode
.Deactivated User
06/01/2018, 6:31 AMDeactivated User
06/01/2018, 6:31 AMmkporwit
06/01/2018, 6:31 AMid_token
.mkporwit
06/01/2018, 6:32 AMDeactivated User
06/01/2018, 6:33 AMmkporwit
06/01/2018, 6:33 AMmkporwit
06/01/2018, 6:33 AMmkporwit
06/01/2018, 6:34 AMcode
or the token
.mkporwit
06/01/2018, 6:34 AMid_token
.mkporwit
06/01/2018, 6:35 AMDeactivated User
06/01/2018, 6:35 AMmkporwit
06/01/2018, 6:36 AMDeactivated User
06/01/2018, 6:36 AMmkporwit
06/01/2018, 6:37 AMmkporwit
06/01/2018, 6:37 AMDeactivated User
06/01/2018, 6:38 AMmkporwit
06/01/2018, 6:38 AMmkporwit
06/01/2018, 6:39 AMDeactivated User
06/01/2018, 6:39 AMktor-openid
for example in the case it is big enough or has additional dependencies.
If the changes required for oauth2 are too big. I would do the typical “abstraction + two implementations” to keep it clean and DRY.mkporwit
06/01/2018, 6:39 AMmkporwit
06/01/2018, 6:40 AMmkporwit
06/01/2018, 6:40 AMmkporwit
06/01/2018, 6:40 AMDeactivated User
06/01/2018, 6:40 AMmkporwit
06/01/2018, 6:43 AMOAuthServerSettings
, and called it OpenIDServerSettings
, would that be a reasonable place to hang it?mkporwit
06/01/2018, 6:43 AMOAuth1aServerSettings
and OAuth2ServerSettings
there…mkporwit
06/01/2018, 6:46 AMOAuth2.kt:simpleOAuth2Step2
Deactivated User
06/01/2018, 6:46 AMmkporwit
06/01/2018, 6:47 AMwhen (method)
, you already try and consume the request.body
Deactivated User
06/01/2018, 6:47 AMDeactivated User
06/01/2018, 6:53 AMval body = response.readText()
it reads the contents of that requests.mkporwit
06/01/2018, 6:57 AMclient.call(request).response
mkporwit
06/01/2018, 7:05 AMmkporwit
06/01/2018, 7:05 AMDeactivated User
06/01/2018, 7:05 AMDeactivated User
06/01/2018, 7:05 AM