-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jans-fido2): interception scripts issue 1485, swagger updates #4543
Conversation
[jans-linux-setup] Kudos, SonarCloud Quality Gate passed! |
[Jans authentication server parent] Kudos, SonarCloud Quality Gate passed! |
|
||
import java | ||
|
||
class Fido2Interception(Fido2InterceptionType): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try this script ? According to CustomScriptType
jython will fail to load it.
@@ -103,6 +105,7 @@ public enum CustomScriptType implements AttributeEnum { | |||
UPDATE_TOKEN("update_token", "Update Token", UpdateTokenType.class, CustomScript.class, "UpdateToken", new DummyUpdateTokenType()), | |||
CONFIG_API("config_api_auth", "Config Api Auth", ConfigApiType.class, CustomScript.class,"ConfigApiAuthorization", new DummyConfigApiType()), | |||
MODIFY_SSA_RESPONSE("modify_ssa_response", "Modify SSA Response", ModifySsaResponseType.class, CustomScript.class, "ModifySsaResponse", new DummyModifySsaResponseType()), | |||
FIDO2_INTERCEPTION("fido2_interception", "Intercept Fido2", Fido2InterceptionType.class, CustomScript.class, "ModifySsaResponse", new DummyFido2InterceptionType()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ModifySsaResponse
doesn't sound as right name for fido script class name :). Probably copy-paste from previous entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of passing , httpRequest, httpResponse);
from top level methods we can inject them in service which need them:
@Context
private HttpServletRequest httpRequest;
@Context
private httpResponse;
[jans-cli] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[jans-config-api-parent] Kudos, SonarCloud Quality Gate passed! |
[jans-core] Kudos, SonarCloud Quality Gate passed! |
Prepare
Description
Target issue
#1485
#4432
closes #1485
closes #4432
Implementation Details
Interception script was implemented like in jans-auth-server
customScript name: "fido2_interception"
customScript example: docs/script-catalog/fido2_interception/fido2-interception/Fido2Interception_Script.py
Swagger: include super gluu endpoints, in https://(your-server)/.well-known/fido2-configuration endpoint.
Test and Document the changes