Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Access Token Provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gazelle
Applications
Test execution
Simulator
Access Token Provider
Commits
94fb5305
Commit
94fb5305
authored
4 years ago
by
Wylem Bars
Browse files
Options
Downloads
Patches
Plain Diff
IUAINFRA-52 | Update README and SoapUI project
parent
bdf514f9
No related branches found
No related tags found
1 merge request
!2
Feature/iuainfra 52
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dummy-authorization-server-service/README.md
+9
-0
9 additions, 0 deletions
dummy-authorization-server-service/README.md
dummy-authorization-server-service/src/main/resources/soapui/DummyAccessTokenProvider.xml
+91
-1
91 additions, 1 deletion
...ce/src/main/resources/soapui/DummyAccessTokenProvider.xml
with
100 additions
and
1 deletion
dummy-authorization-server-service/README.md
+
9
−
0
View file @
94fb5305
...
...
@@ -12,12 +12,21 @@ and a secret that can be configured depending on the used audience.
| userId | User for whom the token is generated |
| audienceId | ID of the audience used to retrieve secret in Gazelle configurations. |
The response body to this request will be the content of the generated token.
## Available user ID
| User ID |
|----------|
| aamrein |
## Install the tool
Sources are available [here](https://gitlab.inria.fr/gazelle/applications/test-execution/simulator/access-token-provider)
Deploy the `app.dummy-authorization-server-service-X.X.X.war` artifact in a wildfly 18 server.
No specific wildfly configuration is needed for the tool to work.
## Configure Audiences
Edit the file `/opt/simulators/audience.properties`, add a property for each audience that needs to be configured :
...
...
This diff is collapsed.
Click to expand it.
dummy-authorization-server-service/src/main/resources/soapui/DummyAccessTokenProvider.xml
+
91
−
1
View file @
94fb5305
...
...
@@ -146,6 +146,18 @@
<con:params/>
<con:element>
data
</con:element>
</con:representation>
<con:representation
type=
"RESPONSE"
>
<con:mediaType
xsi:nil=
"true"
/>
<con:status>
204
</con:status>
<con:params/>
<con:element>
data
</con:element>
</con:representation>
<con:representation
type=
"RESPONSE"
>
<con:mediaType
xsi:nil=
"true"
/>
<con:status>
204
</con:status>
<con:params/>
<con:element>
data
</con:element>
</con:representation>
<con:request
name=
"Request 1"
id=
"1039bbd9-95cf-452e-ad96-4cfb23827782"
mediaType=
"application/json"
>
<con:settings/>
<con:endpoint>
http://localhost:8780
</con:endpoint>
...
...
@@ -177,7 +189,7 @@
<con:testCase
id=
"f4ab98d6-051e-4e34-9dca-7aac5409f375"
failOnError=
"true"
failTestCaseOnErrors=
"true"
keepSession=
"false"
maxResults=
"0"
name=
"Request"
searchProperties=
"true"
>
<con:settings/>
<con:testStep
type=
"restrequest"
name=
"
Mock-token 1 - R
equest
1
"
id=
"fa834a0a-6dc7-4d84-a15a-f13224626c4e"
>
<con:testStep
type=
"restrequest"
name=
"
Valid r
equest"
id=
"fa834a0a-6dc7-4d84-a15a-f13224626c4e"
>
<con:settings/>
<con:config
service=
"http://localhost:8780"
resourcePath=
"/authorization-server/mock-token"
methodName=
"Mock-token 1"
xsi:type=
"con:RestRequestStep"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
...
...
@@ -215,6 +227,84 @@
</con:testStep>
<con:properties/>
</con:testCase>
<con:testCase
id=
"81ffbff9-1a6a-4389-951a-3f8ed143f4e8"
failOnError=
"true"
failTestCaseOnErrors=
"true"
keepSession=
"false"
maxResults=
"0"
name=
"Unknown UserID"
searchProperties=
"true"
>
<con:settings/>
<con:testStep
type=
"restrequest"
name=
"Unknown userID"
id=
"0821bbbe-9ed6-490b-88f5-c46be620eae6"
>
<con:settings/>
<con:config
service=
"http://localhost:8780"
resourcePath=
"/authorization-server/mock-token"
methodName=
"Mock-token 1"
xsi:type=
"con:RestRequestStep"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<con:restRequest
name=
"Unknown userID"
id=
"1039bbd9-95cf-452e-ad96-4cfb23827782"
mediaType=
"application/json"
>
<con:settings>
<con:setting
id=
"com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"
>
<
xml-fragment/>
</con:setting>
</con:settings>
<con:endpoint>
http://localhost:8780
</con:endpoint>
<con:request/>
<con:originalUri>
http://localhost/authorization-server/mock-token
</con:originalUri>
<con:assertion
type=
"Valid HTTP Status Codes"
id=
"60be561e-c058-42cd-882f-0e60e9226c65"
name=
"Valid HTTP Status Codes"
>
<con:configuration>
<codes>
204
</codes>
</con:configuration>
</con:assertion>
<con:credentials>
<con:authType>
No Authorization
</con:authType>
</con:credentials>
<con:jmsConfig
JMSDeliveryMode=
"PERSISTENT"
/>
<con:jmsPropertyConfig/>
<con:parameters>
<con:entry
key=
"audienceId"
value=
"audience43"
/>
<con:entry
key=
"userId"
value=
"aamrein"
/>
</con:parameters>
<con:parameterOrder>
<con:entry>
userId
</con:entry>
<con:entry>
audienceId
</con:entry>
<con:entry>
purposeOfUse
</con:entry>
<con:entry>
resourceId
</con:entry>
</con:parameterOrder>
</con:restRequest>
</con:config>
</con:testStep>
<con:properties/>
</con:testCase>
<con:testCase
id=
"0b0c480f-8389-40e2-83bf-1adfad6f874f"
failOnError=
"true"
failTestCaseOnErrors=
"true"
keepSession=
"false"
maxResults=
"0"
name=
"Unknown Audience"
searchProperties=
"true"
>
<con:settings/>
<con:testStep
type=
"restrequest"
name=
"Unknown audience"
id=
"b3d2c1e7-36a2-43ad-8056-5ff54b75677b"
>
<con:settings/>
<con:config
service=
"http://localhost:8780"
resourcePath=
"/authorization-server/mock-token"
methodName=
"Mock-token 1"
xsi:type=
"con:RestRequestStep"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<con:restRequest
name=
"Unknown audience"
id=
"1039bbd9-95cf-452e-ad96-4cfb23827782"
mediaType=
"application/json"
>
<con:settings>
<con:setting
id=
"com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"
>
<
xml-fragment/>
</con:setting>
</con:settings>
<con:endpoint>
http://localhost:8780
</con:endpoint>
<con:request/>
<con:originalUri>
http://localhost/authorization-server/mock-token
</con:originalUri>
<con:assertion
type=
"Valid HTTP Status Codes"
id=
"60be561e-c058-42cd-882f-0e60e9226c65"
name=
"Valid HTTP Status Codes"
>
<con:configuration>
<codes>
204
</codes>
</con:configuration>
</con:assertion>
<con:credentials>
<con:authType>
No Authorization
</con:authType>
</con:credentials>
<con:jmsConfig
JMSDeliveryMode=
"PERSISTENT"
/>
<con:jmsPropertyConfig/>
<con:parameters>
<con:entry
key=
"audienceId"
value=
"audience"
/>
<con:entry
key=
"userId"
value=
"wbars"
/>
</con:parameters>
<con:parameterOrder>
<con:entry>
userId
</con:entry>
<con:entry>
audienceId
</con:entry>
<con:entry>
purposeOfUse
</con:entry>
<con:entry>
resourceId
</con:entry>
</con:parameterOrder>
</con:restRequest>
</con:config>
</con:testStep>
<con:properties/>
</con:testCase>
<con:properties/>
</con:testSuite>
<con:properties/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment