Skip to content

Commit

Permalink
Merge pull request #4 from GluuFederation/agama-lab-branch
Browse files Browse the repository at this point in the history
feat: enhancements
  • Loading branch information
Milton-Ch authored Mar 13, 2024
2 parents 0c5e050 + db45e0d commit ea82368
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Flow io.jans.agama.securitykey.fidoAuthn
Flow org.gluu.agama.securitykey.fidoAuthn
Basepath ""
Inputs userData withEscape
Log "@debug Fido Authn flow started!"
jose = Call io.jans.agama.securitykey.authn.FidoValidator#new
jose = Call org.gluu.agama.securitykey.authn.FidoValidator#new
assertion = Call jose assertionRequest userData.uid
obj = { name: userData.name, escape: withEscape, assertion: assertion }
obj = RRF "fido-authn.ftlh" obj
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
"conditionInputField": "",
"valueField": "",
"returnVariable": "",
"javaClassName": "io.jans.agama.securitykey.authn.FidoValidator",
"javaClassName": "org.gluu.agama.securitykey.authn.FidoValidator",
"javaMethodName": "",
"javaVariableName": "",
"maxIterationVariableName": "",
Expand Down Expand Up @@ -714,7 +714,7 @@
"exceptionVariableField": "",
"hasExtraData": false,
"configParams": "{}",
"flowname": "io.jans.agama.securitykey.fidoAuthn",
"flowname": "org.gluu.agama.securitykey.fidoAuthn",
"nodeIcon": "material-symbols:line-start-square",
"inputs": "userData withEscape"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Flow io.jans.agama.securitykey.main
Flow org.gluu.agama.securitykey.main
Basepath ""
Log "@debug Main flow started!"
loginForm = { success: true }
casaApi = Call io.jans.agama.securitykey.CasaApi#new
casaApi = Call org.gluu.agama.securitykey.CasaApi#new
Repeat 3 times max
creds = RRF "main.ftlh" loginForm
userData = Call io.jans.agama.securitykey.IdentityProcessor#accountFromUid creds.username
userData = Call org.gluu.agama.securitykey.IdentityProcessor#accountFromUid creds.username
Log "@debug UserData %" userData
loginForm.username = creds.username
When userData is not null
Expand All @@ -19,7 +19,7 @@ Repeat 3 times max
it_aagka = { success: false, error: "Your account has no security key configured." }
Finish it_aagka
withEscape = true
fidoAuthn = Trigger io.jans.agama.securitykey.fidoAuthn userData withEscape
fidoAuthn = Trigger org.gluu.agama.securitykey.fidoAuthn userData withEscape
Log "@debug Response FidoAuthn %" fidoAuthn
When fidoAuthn.success is true
Finish uid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
"conditionInputField": "",
"valueField": "",
"returnVariable": "",
"javaClassName": "io.jans.agama.securitykey.IdentityProcessor",
"javaClassName": "org.gluu.agama.securitykey.IdentityProcessor",
"javaMethodName": "accountFromUid",
"javaVariableName": "",
"maxIterationVariableName": "",
Expand Down Expand Up @@ -1133,7 +1133,7 @@
"conditionInputField": "",
"valueField": "",
"returnVariable": "",
"javaClassName": "io.jans.agama.securitykey.CasaApi",
"javaClassName": "org.gluu.agama.securitykey.CasaApi",
"javaMethodName": "",
"javaVariableName": "",
"maxIterationVariableName": "",
Expand Down Expand Up @@ -1357,7 +1357,7 @@
"exceptionVariableField": "",
"hasExtraData": false,
"configParams": "{}",
"flowname": "io.jans.agama.securitykey.main"
"flowname": "org.gluu.agama.securitykey.main"
},
"skake": false
},
Expand Down Expand Up @@ -1515,7 +1515,7 @@
"hasExtraData": false,
"configParams": "{}",
"nodeIcon": "fluent-mdl2:trigger-approval",
"flowFileName": "io.jans.agama.securitykey.fidoAuthn",
"flowFileName": "org.gluu.agama.securitykey.fidoAuthn",
"asssignedVariableName": "fidoAuthn"
},
"skake": false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey;
package org.gluu.agama.securitykey;

import com.nimbusds.oauth2.sdk.http.HTTPRequest;
import com.nimbusds.oauth2.sdk.http.HTTPResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey;
package org.gluu.agama.securitykey;

import com.nimbusds.oauth2.sdk.ParseException;
import com.nimbusds.oauth2.sdk.http.HTTPRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey;
package org.gluu.agama.securitykey;

import io.jans.as.common.model.common.User;
import io.jans.as.common.service.common.EncryptionService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey;
package org.gluu.agama.securitykey;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey.authn;
package org.gluu.agama.securitykey.authn;

import io.jans.fido2.client.AssertionService;
import io.jans.fido2.client.Fido2ClientFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.jans.agama.securitykey.notify;
package org.gluu.agama.securitykey.notify;

import com.nimbusds.jose.*;
import com.nimbusds.jwt.*;
Expand Down
4 changes: 2 additions & 2 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
],
"noDirectLaunch": [],
"configs": {
"io.jans.agama.securitykey.fidoAuthn": {},
"io.jans.agama.securitykey.main": {}
"org.gluu.agama.securitykey.fidoAuthn": {},
"org.gluu.agama.securitykey.main": {}
},
"name": "agama-securitykey"
}

0 comments on commit ea82368

Please sign in to comment.