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

Command access restriction with areas #187

Open
adambajguz opened this issue Apr 5, 2021 · 0 comments
Open

Command access restriction with areas #187

adambajguz opened this issue Apr 5, 2021 · 0 comments
Labels
concept Help and further investigation on the proposal is needed. Typin Typin library related issues
Projects
Milestone

Comments

@adambajguz
Copy link
Owner

adambajguz commented Apr 5, 2021

Is your feature request related to a problem? Please describe.
Suppose Typin is used as a hand-written API client for some API that requires to be authenticated, successful execution of login command will give a user access to more commands, while logout will remove this access.

Describe the solution you'd like
Schema areas or subschemas: we will be able to assign a command to an area/subschema and Typin will be able to restrict access to commands based on this. As programmers, we will be able to use e.g. IAreaSwitcher.

We will probably also need to provide some logic to specify whether to inherit command to child areas. Areas will be a tree structure but one command may be in many areas - co maybe no inheritance to child areas needed - just explicit assign of command to area(s)?

Additional remarks

  • Strongly typed areas and strongly typed switcher? a class per area with area parent(s) specification?
  • In direct mode areas/dynamic commands are pointless - how to have a simple direct mode and advanced interactive together?
@adambajguz adambajguz added the concept Help and further investigation on the proposal is needed. label Apr 5, 2021
@adambajguz adambajguz self-assigned this Apr 5, 2021
@adambajguz adambajguz added this to To analyse in Concepts via automation Apr 5, 2021
@adambajguz adambajguz added the Typin Typin library related issues label Apr 5, 2021
@adambajguz adambajguz changed the title Command areas Command access restriction with areas Apr 5, 2021
@adambajguz adambajguz removed their assignment Apr 5, 2021
@adambajguz adambajguz added this to the v4.0 milestone Apr 5, 2021
@adambajguz adambajguz moved this from To analyse to To analyse - created while working on dynamic commands in Concepts Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concept Help and further investigation on the proposal is needed. Typin Typin library related issues
Projects
Concepts
  
To analyse - created while working on...
Development

No branches or pull requests

1 participant