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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -