Comments (3)
Hey @janekolszak!
I'm not terribly familiar with OAuth2 and all the different flows/grant types. But AFAIK as I remember, there is no need to do something special (like calculating hashes or cryptographic signatures).
The complexity arises from the steps a user is requested to do, e.g. for the "Authorization Code" grant: You have to follow redirects, parse HTML, log into applications, … – basically simulate the user interaction part. If your OAuth2 server does not require to run JavaScript, I don't see a reason, why you cannot build a test case with "plain" tsung (you can look for Location
headers to follow redirects, you can extract tokens from JSON and XML responses easily).
What kind of grants are you interested in?
from tsung.
Thanks @tisba!
I'm using the Implicit Grant for my web app (https://github.com/andreassolberg/jso)
- So you say it's possible to "simulate" user's actions, obtain the oauth2 token and then use it with the service's restful API?
- Do you know of any examples I could use?
from tsung.
Urgs, I somehow totally missed your reply.
I don't have any examples. Most tests I do, do not test the authentication service. So we usually generate tokens (or obtain them otherwise) and use them to authenticate to the service that is actually under test.
from tsung.
Related Issues (20)
- Incorrect freemem report in docker containers
- Many too error_unknown and error_connect_* in log
- Don't reset session on change_type
- Mean value is empty and count is 0 in the generated report
- The load is not generated from mulitple client instances as expected in distributed environment HOT 1
- Cannot do "contents_from_file" and '<request subst="true">' at the same time HOT 1
- datestr_test failed with erlang 21 HOT 1
- Error using tsung view after running load test
- Tsung 1.7.0 crashes on start HOT 3
- Getting config error while start a demo mqtt.xml.in script
- Are there any methods for getting only 400s or 500s error in tsung protocol dump file?
- Can I test TCP in tsung but using SSL? HOT 1
- Unable to view graphs on webui HOT 1
- Massive CPU usage after a certain point
- Tsung doen't respond with PONG
- Monitoring with snmp does not work
- Will start 0 users? Do I config error? HOT 1
- How can I test TCP and check recv package?
- How can i send all XMPP messages to a specific user? HOT 1
- Erlang OTP 26 ssl defaults HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsung.