Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Oath or similar flow with berserker? #43

Open
milannister opened this issue Nov 23, 2017 · 1 comment
Open

How to use Oath or similar flow with berserker? #43

milannister opened this issue Nov 23, 2017 · 1 comment

Comments

@milannister
Copy link
Contributor

Some APIs have Oath flow where it is necessary to obtain a token for a user.
In that case the flow would go like this:

create or authenticate user(s) -> obtain token(s) from response -> use the token(s) in all requests

This is very common flow which hasn't been taken into consideration so far.

@milannister
Copy link
Contributor Author

milannister commented Nov 23, 2017

Vladimir and I have thought of several ways to implement this behavior:

  1. Create bunch of users/tokens with the script and save the responses (tokens) into CSV. The CSV with the tokens would, then, be used in Berserker for fetching the tokens.
  2. Use Ranger/Berseker programmatically and program the flow of obtaining the token, but use Ranger and some components of Berserker for creating and dispatching requests. I like the idea of programming the flow (or parts of it) because otherwise the configuration file will become really hard to comprehend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant