-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename jans-ce-setup (#704)
* ci: rename jans-ce-setup * refactor: rename jans-ce-setup to jans-linux-setup * fix: vm setup suse fixes (#705) * fix: suse fixes * refactor(admin-ui): remove admin-ui (ref: #691) * fix: remove cb and spanner backend options for package * refactor(ce-setup): ce-setup exclude jwt from config-cli (cherry picked from commit 2f69a8a) * ci: rename jans-vm-setup to jans-linux-setup Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com> Co-authored-by: Mustafa Baser <mbaser@mail.com>
- Loading branch information
1 parent
2f69a8a
commit d50da27
Showing
290 changed files
with
1,160 additions
and
1,274 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
106 changes: 53 additions & 53 deletions
106
...sion/introspection/IntrospectionScript.py → ...sion/introspection/IntrospectionScript.py
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,54 +1,54 @@ | ||
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. | ||
# Copyright (c) 2021, Gluu | ||
# | ||
# Author: Yuriy Zabrovarnyy | ||
# | ||
# | ||
|
||
from io.jans.model.custom.script.type.introspection import IntrospectionType | ||
from java.lang import String | ||
from io.jans.as.server.model.common import AuthorizationGrantList | ||
from io.jans.service.cdi.util import CdiUtil | ||
from io.jans.as.server.service import GrantService | ||
from io.jans.as.model.common import TokenType | ||
from io.jans.as.server.model.ldap import TokenEntity | ||
from io.jans.as.server.service import SessionIdService | ||
|
||
class Introspection(IntrospectionType): | ||
def __init__(self, currentTimeMillis): | ||
self.currentTimeMillis = currentTimeMillis | ||
|
||
def init(self, customScript, configurationAttributes): | ||
print "Introspection script (retain claims). Initializing ..." | ||
print "Introspection script (retain claims). Initialized successfully" | ||
|
||
return True | ||
|
||
def destroy(self, configurationAttributes): | ||
print "Introspection script (retain claims). Destroying ..." | ||
print "Introspection script (retain claims). Destroyed successfully" | ||
return True | ||
|
||
def getApiVersion(self): | ||
return 11 | ||
|
||
# Returns boolean, true - apply introspection method, false - ignore it. | ||
# This method is called after introspection response is ready. This method can modify introspection response. | ||
# Note : | ||
# responseAsJsonObject - is org.codehaus.jettison.json.JSONObject, you can use any method to manipulate json | ||
# context is reference of org.gluu.oxauth.service.external.context.ExternalIntrospectionContext (in https://github.com/GluuFederation/oxauth project, ) | ||
def modifyResponse(self, responseAsJsonObject, context): | ||
print "modifyResponse invoked" | ||
|
||
sessionIdService = CdiUtil.bean(SessionIdService) | ||
|
||
if context.getTokenGrant().getSessionDn() is not None: | ||
print "session id from context - %s" % context.getTokenGrant().getSessionDn() | ||
sessionId = sessionIdService.getSessionByDn(context.getTokenGrant().getSessionDn()) # fetch from persistence | ||
openbanking_intent_id = sessionId.getSessionAttributes().get("openbanking_intent_id") | ||
print "openbanking_intent_id from session : "+openbanking_intent_id | ||
responseAsJsonObject.accumulate("openbanking_intent_id", openbanking_intent_id) | ||
|
||
return True | ||
|
||
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. | ||
# Copyright (c) 2021, Gluu | ||
# | ||
# Author: Yuriy Zabrovarnyy | ||
# | ||
# | ||
|
||
from io.jans.model.custom.script.type.introspection import IntrospectionType | ||
from java.lang import String | ||
from io.jans.as.server.model.common import AuthorizationGrantList | ||
from io.jans.service.cdi.util import CdiUtil | ||
from io.jans.as.server.service import GrantService | ||
from io.jans.as.model.common import TokenType | ||
from io.jans.as.server.model.ldap import TokenEntity | ||
from io.jans.as.server.service import SessionIdService | ||
|
||
class Introspection(IntrospectionType): | ||
def __init__(self, currentTimeMillis): | ||
self.currentTimeMillis = currentTimeMillis | ||
|
||
def init(self, customScript, configurationAttributes): | ||
print "Introspection script (retain claims). Initializing ..." | ||
print "Introspection script (retain claims). Initialized successfully" | ||
|
||
return True | ||
|
||
def destroy(self, configurationAttributes): | ||
print "Introspection script (retain claims). Destroying ..." | ||
print "Introspection script (retain claims). Destroyed successfully" | ||
return True | ||
|
||
def getApiVersion(self): | ||
return 11 | ||
|
||
# Returns boolean, true - apply introspection method, false - ignore it. | ||
# This method is called after introspection response is ready. This method can modify introspection response. | ||
# Note : | ||
# responseAsJsonObject - is org.codehaus.jettison.json.JSONObject, you can use any method to manipulate json | ||
# context is reference of org.gluu.oxauth.service.external.context.ExternalIntrospectionContext (in https://github.com/GluuFederation/oxauth project, ) | ||
def modifyResponse(self, responseAsJsonObject, context): | ||
print "modifyResponse invoked" | ||
|
||
sessionIdService = CdiUtil.bean(SessionIdService) | ||
|
||
if context.getTokenGrant().getSessionDn() is not None: | ||
print "session id from context - %s" % context.getTokenGrant().getSessionDn() | ||
sessionId = sessionIdService.getSessionByDn(context.getTokenGrant().getSessionDn()) # fetch from persistence | ||
openbanking_intent_id = sessionId.getSessionAttributes().get("openbanking_intent_id") | ||
print "openbanking_intent_id from session : "+openbanking_intent_id | ||
responseAsJsonObject.accumulate("openbanking_intent_id", openbanking_intent_id) | ||
|
||
return True | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions
26
...p/static/auth/conf/otp_configuration.json → ...p/static/auth/conf/otp_configuration.json
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,13 +1,13 @@ | ||
{ | ||
"hotp":{ | ||
"keyLength":20, | ||
"digits":6, | ||
"lookAheadWindow":10 | ||
}, | ||
"totp":{ | ||
"keyLength":20, | ||
"digits":6, | ||
"timeStep":30, | ||
"hmacShaAlgorithm": "sha1" | ||
} | ||
} | ||
{ | ||
"hotp":{ | ||
"keyLength":20, | ||
"digits":6, | ||
"lookAheadWindow":10 | ||
}, | ||
"totp":{ | ||
"keyLength":20, | ||
"digits":6, | ||
"timeStep":30, | ||
"hmacShaAlgorithm": "sha1" | ||
} | ||
} |
38 changes: 19 additions & 19 deletions
38
...up/static/auth/conf/super_gluu_creds.json → ...up/static/auth/conf/super_gluu_creds.json
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,19 +1,19 @@ | ||
{ | ||
"android":{ | ||
"jans":{ | ||
"enabled":true, | ||
"access_key":"36WH2JiexBOoAIBP", | ||
"secret_access_key":"ueqsU2Dc7m3r4HmLz4M79DpzzCNqTfek" | ||
} | ||
}, | ||
"ios":{ | ||
"jans":{ | ||
"enabled":true, | ||
"access_key":"auONAdePWoYFBX6V", | ||
"secret_access_key":"f050aW0nnihym0GwktWd7O15jGSQcoei" | ||
} | ||
}, | ||
"jans":{ | ||
"server_uri":"https://api.jans.io" | ||
} | ||
} | ||
{ | ||
"android":{ | ||
"jans":{ | ||
"enabled":true, | ||
"access_key":"36WH2JiexBOoAIBP", | ||
"secret_access_key":"ueqsU2Dc7m3r4HmLz4M79DpzzCNqTfek" | ||
} | ||
}, | ||
"ios":{ | ||
"jans":{ | ||
"enabled":true, | ||
"access_key":"auONAdePWoYFBX6V", | ||
"secret_access_key":"f050aW0nnihym0GwktWd7O15jGSQcoei" | ||
} | ||
}, | ||
"jans":{ | ||
"server_uri":"https://api.jans.io" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.