spring - Mock OAuth server for testing -


i'd know if possible simulate oauth(1,2) authentication flow. i'd test without need connect provider itself. should possible communication exchange. i'm not looking this still communicate remote server. i'd offline, when testing.

maybe can run own oauth server. should using google oauth services server should behave same do. google provide code oauth server, or possible create fake server. note test should more integration test. command server return predefined responses. switching live oauth providers changing remote url.

maybe http server ok, need care proper format of communicated messages.

take @ client side rest tests section of spring reference docs. support can fake server , record desired behaviour mockrestserviceserver.

here examples created.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -