This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): support unauthenticated client access
This commit builds on top of the new privileged-based layered API access introduced in abd8f76. The commit reverts part of the changes introduced in 5552179 and builds upon the parts that remain. It is now (again) possible to access the client without being authenticated. The client works as it did before, all data is accessible and visible. However, when you open a task, it will now show you either the original "run" button, or – depending on your access level – a button informing you that you need to authenticate to run the task, or if you are already authenticated but lack sufficient privileges, it will inform you that you cannot run said task. The "Authentication Required" button can be clicked to show a more friendly inline login field, that doesn't cover the entire screen, and can be ignored if you are not interested in authenticating. All in all, this provides a _much_ friendlier user experience, while also allowing for more fine-grained access control. This closes #19, #21, and #39.
- Loading branch information
Showing
20 changed files
with
373 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
query FetchSessionDetails { | ||
session { | ||
privileges | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ query FetchTaskDetails($id: ID!) { | |
id | ||
name | ||
description | ||
labels | ||
|
||
variables { | ||
key | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ query SearchTasks($search: SearchTaskInput) { | |
id | ||
name | ||
description | ||
labels | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.