Skip to content
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: config api custom interception scripts #831

Closed
pujavs opened this issue Feb 16, 2022 · 1 comment
Closed

feat: config api custom interception scripts #831

pujavs opened this issue Feb 16, 2022 · 1 comment
Assignees

Comments

@pujavs
Copy link
Contributor

pujavs commented Feb 16, 2022

Currently jans-config-api uses basic authentication, requirement is to use an interception scripts which can enable custom business logic for authentication.
For example, a customer may want to pass an access token with a custom claim, like {"role": "manager", "infrastructure": "prod"}
The script should read that information from the access token, and then write custom rules about whether to allow or deny the client authentication.
Note: Script already checked in branch 286 -> https://github.com/JanssenProject/jans/tree/jans-286/jans-linux-setup/static/extension/config_api

Details of jansCustomScr:

inum = preferable with 'A' example DN: inum=A110-88AB,ou=scripts,o=jans
description = Jans Config Api authorization script
displayName = config_api_authorization
jansConfProperty = {"value1":"testProp1","value2":"Test value 1","hide":false,"description":""}
jansConfProperty = {"value1":"testProp2","value2":"Test value 2","hide":false,"description":""}
jansEnabled = false
jansLevel = 100
jansModuleProperty= {"value1":"location_type","value2":"ldap","description":""}
jansProgLng = python
jansScrTyp = config_api_auth
jansScr = https://github.com/JanssenProject/jans/tree/jans-286/jans-linux-setup/static/extension/config_api
jansCustomScr-config-api.zip

Related config-api issue Issue-286 #286

@devrimyatar
Copy link
Contributor

Implemeted in #882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants