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(jans-auth): update SG script to conform API #9541

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading