Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Preloaded Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monterey Phoenix
MP Model Collection
Preloaded Examples
Commits
6df4bc29
"examples/src/TcpExamples/TcpExample1TerminalLog.txt" did not exist on "45284f12c07ca1d6b7f496e4c93066301a44f08b"
Commit
6df4bc29
authored
3 years ago
by
Giammarco, Kristin M
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
9a6003aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Example57_Authentication.mp
+56
-0
56 additions, 0 deletions
Example57_Authentication.mp
with
56 additions
and
0 deletions
Example57_Authentication.mp
0 → 100644
+
56
−
0
View file @
6df4bc29
/*******************************************************************************
A Model for Simple Authentication
A demonstration that shows how to reject unwanted behaviors with ENSURE
constraints.
created by K.Giammarco on 05/16/2017
modified by K.Giammarco on 08/07/2017 for capitalization of state events
modified by K.Giammarco on 08/07/2017 for ENSURE constraints
********************************************************************************/
SCHEMA Authentication
/*-----------------------
USER BEHAVIORS
-------------------------*/
ROOT User: Provide_credentials
(* CREDS_INVALID Reenter_credentials *)
[ CREDS_VALID Access_system ];
/*-----------------------
SYSTEM BEHAVIORS
-------------------------*/
ROOT System: Verify_credentials
(+ ( CREDS_INVALID Deny_access |
CREDS_VALID Grant_access ) +)
[ Lock_account ]
;
/*-----------------------
INTERACTION CONSTRAINTS
-------------------------*/
User, System SHARE ALL CREDS_VALID, CREDS_INVALID;
COORDINATE $a: Provide_credentials FROM User,
$b: Verify_credentials FROM System
DO ADD $a PRECEDES $b; OD;
COORDINATE $a: Deny_access FROM System,
$b: Reenter_credentials FROM User
DO ADD $a PRECEDES $b; OD;
COORDINATE $a: Grant_access FROM System,
$b: Access_system FROM User
DO ADD $a PRECEDES $b; OD;
ENSURE #CREDS_INVALID <= 3;
ENSURE #Deny_access >= 3 <-> #Lock_account == 1;
ENSURE #Grant_access >= 1 -> #Lock_account == 0;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment