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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -