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

Warden for anonymous users #139

Closed
matteosuppo opened this issue Jul 12, 2016 · 2 comments
Closed

Warden for anonymous users #139

matteosuppo opened this issue Jul 12, 2016 · 2 comments
Assignees
Labels
feat New feature or request.
Milestone

Comments

@matteosuppo
Copy link
Contributor

Suppose I have a policy that allows anyone, including anonymous users, to access a resource.
Given that the user is anonymous I don't have a token, but the ActionAllowed method asks for it:

func (w *HTTPWarden) ActionAllowed(ctx context.Context, token string, a *ladon.Request, scopes ...string) (*Context, error) {

What should I do in this case?

@aeneasr aeneasr self-assigned this Jul 13, 2016
@aeneasr aeneasr added the feat New feature or request. label Jul 13, 2016
@aeneasr
Copy link
Member

aeneasr commented Jul 13, 2016

right, we need to add a simple policy check as well!

@aeneasr
Copy link
Member

aeneasr commented Jul 25, 2016

This issue is now superseded by #162

@aeneasr aeneasr closed this as completed Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants