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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
7d1918fb
Commit
7d1918fb
authored
4 years ago
by
Wylem Bars
Browse files
Options
Downloads
Patches
Plain Diff
IUAINFRA-52 | Add README and soapUI project
parent
a40fbbf3
No related branches found
No related tags found
1 merge request
!2
Feature/iuainfra 52
Pipeline
#165446
failed
4 years ago
Stage: build
Stage: tests
Stage: cleanup
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dummy-authorization-server-service/README.md
+30
-0
30 additions, 0 deletions
dummy-authorization-server-service/README.md
dummy-authorization-server-service/src/main/resources/soapui/DummyAccessTokenProvider.xml
+217
-0
217 additions, 0 deletions
...ce/src/main/resources/soapui/DummyAccessTokenProvider.xml
with
247 additions
and
0 deletions
dummy-authorization-server-service/README.md
0 → 100644
+
30
−
0
View file @
7d1918fb
# Dummy Authorization Server Service
This service mock an Access Token Provider, giving a mocked token using one of available user id
and a secret that can be configured depending on the used audience.
## Request examples
```
http://localhost:8780/authorization-server/mock-token?userId=aamrein&audienceId=audience```
| Parameter Name | Usage |
|-------------|-----------------------------------------------------------------------|
| userId | User for whom the token is generated |
| audienceId | ID of the audience used to retrieve secret in Gazelle configurations. |
## Available user ID
| User ID |
|----------|
| aamrein |
## Configure Audiences
Edit the file `/opt/simulators/audience.properties`, add a property for each audience that needs to be configured :
```
audience1=secret1
audience2=secret2
audience3=secret3
...
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dummy-authorization-server-service/src/main/resources/soapui/DummyAccessTokenProvider.xml
0 → 100644
+
217
−
0
View file @
7d1918fb
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project
id=
"511bc175-43ea-4daa-b8b0-8135770e4931"
activeEnvironment=
"Default"
name=
"REST Project 1"
resourceRoot=
""
soapui-version=
"5.5.0"
xmlns:con=
"http://eviware.com/soapui/config"
>
<con:settings/>
<con:interface
xsi:type=
"con:RestService"
id=
"a83dfcbb-6422-4e5a-a181-094eaf6314b0"
wadlVersion=
"http://wadl.dev.java.net/2009/02"
name=
"http://localhost:8780"
type=
"rest"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<con:settings/>
<con:definitionCache
type=
"TEXT"
rootPart=
""
/>
<con:endpoints>
<con:endpoint>
http://localhost:8780
</con:endpoint>
</con:endpoints>
<con:resource
name=
"Mock-token"
path=
"/authorization-server/mock-token"
id=
"7270205e-e39c-4360-84e7-e29e05aad49b"
>
<con:settings/>
<con:parameters>
<con:parameter>
<con:name>
userId
</con:name>
<con:value/>
<con:style>
QUERY
</con:style>
<con:default/>
<con:description
xsi:nil=
"true"
/>
</con:parameter>
<con:parameter>
<con:name>
audienceId
</con:name>
<con:value/>
<con:style>
QUERY
</con:style>
<con:default/>
<con:description
xsi:nil=
"true"
/>
</con:parameter>
<con:parameter>
<con:name>
purposeOfUse
</con:name>
<con:value/>
<con:style>
QUERY
</con:style>
<con:default/>
<con:description
xsi:nil=
"true"
/>
</con:parameter>
<con:parameter>
<con:name>
resourceId
</con:name>
<con:value/>
<con:style>
QUERY
</con:style>
<con:default/>
<con:description
xsi:nil=
"true"
/>
</con:parameter>
</con:parameters>
<con:method
name=
"Mock-token 1"
id=
"abfda5a1-8402-4e07-af8d-89b02e4d0c72"
method=
"GET"
>
<con:settings/>
<con:parameters/>
<con:representation
type=
"RESPONSE"
>
<con:mediaType>
application/octet-stream
</con:mediaType>
<con:status>
200
</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: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: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:representation
type=
"RESPONSE"
>
<con:mediaType
xsi:nil=
"true"
/>
<con:status>
0
</con:status>
<con:params/>
<con:element>
data
</con:element>
</con:representation>
<con:representation
type=
"RESPONSE"
>
<con:mediaType
xsi:nil=
"true"
/>
<con:status>
0
</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:representation
type=
"RESPONSE"
>
<con:mediaType
xsi:nil=
"true"
/>
<con:status>
0
</con:status>
<con:params/>
<con:element>
data
</con:element>
</con:representation>
<con:representation
type=
"FAULT"
>
<con:mediaType>
text/html
</con:mediaType>
<con:status>
404
</con:status>
<con:params/>
<con:element>
html
</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>
0
</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: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>
0
</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>
<con:request/>
<con:credentials>
<con:authType>
No Authorization
</con:authType>
</con:credentials>
<con:jmsConfig
JMSDeliveryMode=
"PERSISTENT"
/>
<con:jmsPropertyConfig/>
<con:parameters>
<con:entry
key=
"resourceId"
value=
"12"
/>
<con:entry
key=
"purposeOfUse"
value=
"test"
/>
<con:entry
key=
"audienceId"
value=
"audience"
/>
<con:entry
key=
"userId"
value=
"test"
/>
</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:request>
</con:method>
</con:resource>
</con:interface>
<con:testSuite
id=
"99a0a2d5-1bf9-4cd6-a66d-29830e75aef8"
name=
"Test Mock Token Provider"
>
<con:settings/>
<con:runType>
SEQUENTIAL
</con:runType>
<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 - Request 1"
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"
>
<con:restRequest
name=
"Mock-token 1 - Request 1"
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: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=
"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:properties/>
</con:testSuite>
<con:properties/>
<con:wssContainer/>
<con:oAuth2ProfileContainer/>
<con:oAuth1ProfileContainer/>
</con:soapui-project>
\ No newline at end of file
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