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

Give a state-less fashion for restclient api #2

Open
pfreixes opened this issue Aug 23, 2013 · 0 comments
Open

Give a state-less fashion for restclient api #2

pfreixes opened this issue Aug 23, 2013 · 0 comments
Assignees

Comments

@pfreixes
Copy link
Owner

Current resclient.Client api is none stateless, and it is usefull when we need to get more than one interaction with OpenAM server and the first one is one authentication call.

But we have to give a stateless fashion to make isolated queries using a token_id value got by the user.

One way to figure out that will use a new keyword at all public methods of Client class to give us the token value to be used.

c = restclient.Client(url, None, None, state_less = True)
c.logout(token_id="value")

Take care for current strong dependencie at Client init function with username, password and call straight for to authentication method. Here we are using a "patch" for avoid that with a new keyword called state_less.

@ghost ghost assigned pfreixes Aug 23, 2013
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