feat(api): add candidate assessment attempt contract
This commit is contained in:
1 parent
6c86c4e559
commit
565ef8d4f5
100 files changed
+30314
-74
No files matched your search
@@ -56,11 +56,17 @@ func findAuthorization(h http.Header, prefix string) (string, bool) {
|
||||
|
||||
// operationRolesSessionCookie is a private map storing roles per operation.
|
||||
var operationRolesSessionCookie = map[string][]string{
|
||||
GetCurrentAccountOperation: []string{},
|
||||
GetCurrentSessionOperation: []string{},
|
||||
GetMyQuestionnaireOperation: []string{},
|
||||
LogoutOperation: []string{},
|
||||
SaveMyQuestionnaireOperation: []string{},
|
||||
CreateMyAssessmentAttemptOperation: []string{},
|
||||
FinalizeMyAssessmentAttemptOperation: []string{},
|
||||
GetCurrentAccountOperation: []string{},
|
||||
GetCurrentSessionOperation: []string{},
|
||||
GetMyAssessmentAttemptOperation: []string{},
|
||||
GetMyAssessmentAvailabilityOperation: []string{},
|
||||
GetMyAssessmentResultOperation: []string{},
|
||||
GetMyQuestionnaireOperation: []string{},
|
||||
LogoutOperation: []string{},
|
||||
SaveMyQuestionnaireOperation: []string{},
|
||||
SubmitMyAssessmentAnswerOperation: []string{},
|
||||
}
|
||||
|
||||
// GetRolesForSessionCookie returns the required roles for the given operation.
|
||||
@@ -86,8 +92,11 @@ func GetRolesForSessionCookie(operation string) []string {
|
||||
|
||||
// operationRolesSessionCsrf is a private map storing roles per operation.
|
||||
var operationRolesSessionCsrf = map[string][]string{
|
||||
LogoutOperation: []string{},
|
||||
SaveMyQuestionnaireOperation: []string{},
|
||||
CreateMyAssessmentAttemptOperation: []string{},
|
||||
FinalizeMyAssessmentAttemptOperation: []string{},
|
||||
LogoutOperation: []string{},
|
||||
SaveMyQuestionnaireOperation: []string{},
|
||||
SubmitMyAssessmentAnswerOperation: []string{},
|
||||
}
|
||||
|
||||
// GetRolesForSessionCsrf returns the required roles for the given operation.
|
||||
|
||||
Reference in new issue
Block a user