Skip to content

Query: support for anonymous users via Soul-Auth #219

@IanMayo

Description

@IanMayo

This is a query regarding the implementation of Authentication and Authorisation within soul-cli.

I have a requirement to support anonymous access to my application. At a basic level, I picture a soul API request being sent without a JWT token, and soul allowing GET on any resource.

I imagine we could introduce a set of role_permissions for a special role which only allow READ content to tables. Somehow, soul would translate anonymous calls as being calls using that role - and provide access according to the specified role_permissions.

I guess this would be implemented in src/middlewares/auth.js, as changed processing in hasAccess for if the request.cookies.accessToken is missing.

I also-guess that for this special processing we'd introduce a runtime -anonRole config parameter that specifies the role id to be used for unauthenticated (anonymous) users.

Feedback is welcomed on this :-D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions