-
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.
- Loading branch information
Showing
24 changed files
with
1,287 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
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 |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# agama-typekey | ||
Agama Project to authenticate people using typing keyboard dynamics | ||
An Agama flow designed to authenticate against the Typekey API to test behavioral metrics | ||
|
||
## Setup | ||
|
||
Modify the configuration with the following values: | ||
|
||
```json | ||
... | ||
"configs": { | ||
"io.jans.typekey": { | ||
"keystoreName": "", // name of keystore file | ||
"keystorePassword": "", // password of keystore file | ||
"orgId": "", // org_id of the SCAN account to use | ||
"clientId": "", // Client ID obtained from DCR | ||
"clientSecret": "", // Client secret obtained from DCR | ||
"authHost": "https://account-dev.gluu.cloud", // Authorization server | ||
"scanHost": "https://cloud-dev.gluu.cloud" // SCAN host | ||
} | ||
} | ||
``` |
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 @@ | ||
### Web folder |
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,21 @@ | ||
Flow org.gluu.agama.typekey | ||
Basepath "" | ||
Configs conf | ||
Log "@info " Starting Typekey Authentication | ||
user = {} | ||
password = {} | ||
typekey = {} | ||
user = RRF "typekey/username.ftlh" user | ||
idp = Call org.gluu.agama.typekey.IdentityProcessor#new | ||
userData = Call idp accountFromUsername user.username | ||
When userData.empty is true | ||
it_mqfld = {success:false, error: "Account not found"} | ||
Finish it_mqfld | ||
tk = Call org.gluu.agama.typekey.Typekey#new conf | ||
enrolled = Call idp enrolled user.username | ||
When enrolled is false | ||
random_usecase = Call tk getRandomUseCase | ||
phrase_map = Call tk getPhraseMap random_usecase | ||
res = Call idp enroll user.username phrase_map | ||
it_dhkcc = {success:true, data: { userId: user.username}} | ||
Finish it_dhkcc |
Oops, something went wrong.