Skip to content

Commit

Permalink
feat(jans-auth): update SG script to conform API
Browse files Browse the repository at this point in the history
Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem committed Sep 19, 2024
1 parent 23ef80c commit 89d5b3f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,7 @@ def getAccessTokenJansServer(self, asBaseUrl, asClientId, asClientSecret):

try:
httpService = CdiUtil.bean(HttpService2)
httpClient = httpService.getHttpsClient()
resultResponse = httpService.executePost(httpClient, endpointUrl, authData, headers, body, ContentType.APPLICATION_FORM_URLENCODED)
resultResponse = httpService.executePost(endpointUrl, None, headers, body, ContentType.APPLICATION_JSON, None)
httpResponse = resultResponse.getHttpResponse()
httpResponseStatusCode = httpResponse.getStatusLine().getStatusCode()
print "Super-Gluu. Scan. Get token response status code: %s" % httpResponseStatusCode
Expand Down
14 changes: 7 additions & 7 deletions jans-config-api/plugins/docs/lock-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ components:
format: date-time
service:
type: string
getnodeName:
nodeName:
type: string
status:
type: string
Expand All @@ -506,7 +506,7 @@ components:
format: date-time
service:
type: string
getnodeName:
nodeName:
type: string
eventType:
type: string
Expand Down Expand Up @@ -543,7 +543,7 @@ components:
format: date-time
service:
type: string
getnodeName:
nodeName:
type: string
status:
type: string
Expand All @@ -557,11 +557,11 @@ components:
type: integer
format: int64
lastPolicyEvaluationTimeNs:
type: string
format: date-time
type: integer
format: int32
avgPolicyEvaluationTimeNs:
type: string
format: date-time
type: integer
format: int32
evaluationRequestsCount:
type: integer
format: int64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public void setService(String service) {
this.service = service;
}

public String getnodeName() {
public String getNodeName() {
return nodeName;
}

public void setnodeName(String nodeName) {
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public void setService(String service) {
this.service = service;
}

public String getnodeName() {
public String getNodeName() {
return nodeName;
}

public void setnodeName(String nodeName) {
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ public void setService(String service) {
this.service = service;
}

public String getnodeName() {
public String getNodeName() {
return nodeName;
}

public void setnodeName(String nodeName) {
public void setNodeName(String nodeName) {
this.nodeName = nodeName;
}

Expand Down

0 comments on commit 89d5b3f

Please sign in to comment.