forked from ibm-apiconnect/openid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoidc_1.0.0.yaml
812 lines (764 loc) · 31 KB
/
oidc_1.0.0.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
swagger: '2.0'
info:
x-ibm-name: oauth2-oidc-provider
title: OAuth2 OIDC Provider
version: 1.0.0
description: >-
Provide a template on how to enable OIDC for APIC OAuth provider.
Authorization Code : the standard OAuth protocol
Resource Owner Grant Type : the 2 legged owner grant type
Client Credential : there is no user in this, and thus no id_token will be
created
Skip:
Implicit : this is a subset of authorization code grant type, public client
contact:
url: 'https://www.ibm.com/support/home/product/I433959L64023U66/IBM_API_Connect'
name: IBM
schemes:
- https
host: $(catalog.host)
basePath: /
securityDefinitions:
clientID:
description: application's client_id
in: query
name: client_id
type: apiKey
clientIdHeader:
in: header
type: apiKey
name: X-IBM-Client-Id
clientSecretHeader:
in: header
type: apiKey
name: X-IBM-Client-Secret
security:
- clientID: []
paths:
/oauth2/authorize:
get:
produces:
- text/html
summary: endpoint for Authorization Code and Implicit grants
description: description
parameters:
- name: response_type
in: query
description: request an authorization code or or access token (implicit)
required: true
type: string
enum:
- code
- token
- name: scope
in: query
description: Scope being requested
type: string
required: true
- name: redirect_uri
in: query
type: string
description: URI where user is redirected to after authorization
required: false
- name: state
in: query
type: string
description: >-
This string will be echoed back to application when user is
redirected
required: false
responses:
'200':
description: An HTML form for authentication or authorization of this request.
'302':
description: >
Redirect to the clients redirect_uri containing one of the following
- **authorization code** for Authorization code grant
- **access token** for Implicity grant
- **error** in case of errors, such as the user has denied the
request
security:
- clientID: []
post:
consumes:
- application/x-www-form-urlencoded
produces:
- text/html
summary: submit approval to authorization code or access token
description: >
Submit resource owners approval (or rejection) for the OAuth2 Server to
issue an
authorization code or access token to the application.
security: []
parameters:
- name: client_id
in: formData
description: application requesting the access code or token
required: true
type: string
- name: scope
in: formData
description: requested scope of this authorization
required: true
type: string
- name: resource-owner
in: formData
description: resource owners user name
required: true
type: string
- name: redirect_uri
in: formData
description: >-
URI the application is requesting this code or token to be
redirected to
required: true
type: string
- name: original-url
in: formData
description: URL of the original authorization request
required: true
type: string
- name: dp-state
in: formData
description: state information provided in the authorization form
required: true
type: string
- name: dp-data
in: formData
description: state information provided in the authorization form
required: true
type: string
responses:
'200':
description: Cool
/oauth2/token:
post:
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
summary: Request Access Tokens
description: >
This endpoint allows requesting an access token following one of the
flows below:
- Authorization Code (exchange code for access token)
- Client Credentials (2-legged, there isnt resource owner information)
- Resource Owner Password Credentials (2-legged, client provides
resource owner name and password)
- Refresh Token (exchange refresh token for a new access code)
The table below indicates the required parameters for each specific
grant_type options.
Empty cells indicate a parameter is ignored for that specific grant
type.
Client authentication:
- Confidential clients should authenticate using HTTP Basic
Authentication. Alternatively, they may post
their client_id and client_secret information as a formData parameter.
- Public clients should send their client_id as formData parameter.
| grant_type | code | client_credentials | password |
refresh_token |
|----------------------|------------|--------------------|-------------|---------------|
| client_id | required* | required* | required* |
required* |
| client_secret | required* | required* | required* |
required* |
| code | required | |
| |
| redirect_uri | required | |
| |
| username | | | required
| |
| password | | | required
| |
| scope | | optional | optional
| |
| refresh_token | | | |
required |
The implicit grant requests, see /oauth2/authorize.
security: []
parameters:
- name: grant_type
in: formData
description: Type of grant
type: string
required: true
enum:
- authorization_code
- password
- client_credentials
- refresh_token
- name: client_id
in: formData
description: >-
Application client ID, can be provided in formData or using HTTP
Basic Authentication
required: false
type: string
- name: client_secret
in: formData
description: >-
Application secret, must be provided in formData or using HTTP Basic
Authentication
required: false
type: string
- name: code
in: formData
description: Authorization code provided by the /oauth2/authorize endpoint
required: false
type: string
- name: redirect_uri
in: formData
description: >-
required only if the redirect_uri parameter was included in the
authorization request /oauth2/authorize; their values MUST be
identical.
required: false
type: string
- name: username
in: formData
type: string
description: Resource owner username
required: false
- name: password
in: formData
type: string
description: Resource owner password
required: false
- name: scope
in: formData
type: string
description: Scope being requested
required: false
- name: refresh_token
in: formData
type: string
description: >-
The refresh token that the client wants to exchange for a new access
token (refresh_token grant_type)
required: false
responses:
'200':
description: 'json document containing token, etc.'
schema:
$ref: '#/definitions/access_token_response'
'400':
description: json document that may contain additional details about the failure
/oauth2/revoke:
post:
consumes:
- application/x-www-form-urlencoded
summary: Introspect a given access_token supported
description: |
This endpoint introspects a given access_token
security:
- clientIdHeader: []
clientSecretHeader: []
parameters:
- name: token
in: formData
description: 'String value of the access_token, or refresh_token to be revoked'
required: true
type: string
- name: token_type_hint
in: formData
description: >-
This must contain 'access_token' or 'refresh_token' to indicate the
token type
required: true
type: string
responses:
'200':
description: not applicable
/oauth2/introspect:
post:
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
summary: Introspect a given access_token supported
description: |
This endpoint introspects a given access_token
security:
- clientIdHeader: []
clientSecretHeader: []
parameters:
- name: token
in: formData
description: String value of the access_token to be introspected
required: true
type: string
- name: token_type_hint
in: formData
description: This must contain 'access_token' to indicate the token type
required: true
type: string
responses:
'200':
description: 'json document containing issued information, etc.'
schema:
$ref: '#/definitions/introspect_response'
'401':
description: failure
/oauth2/issued:
get:
produces:
- application/json
summary: Returns list of permission granted to the owner
description: >
This endpoint allows the return of all the issued permission for a given
authenticated owner per owner authentication
defined in the x-ibm-configuration section
security:
- clientIdHeader: []
clientSecretHeader: []
responses:
'200':
description: 'json document containing issued information, etc.'
schema:
$ref: '#/definitions/issued_responses'
'401':
description: failure in retreiving issued list
delete:
consumes:
- application/x-www-form-urlencoded
produces:
- application/json
summary: Revoke an application/client permission by the authorized owner
description: Revoke an application/client permission by the authorized owner
security:
- clientIdHeader: []
clientSecretHeader: []
parameters:
- name: client-id
in: query
description: client-id is the OAuth client_id or application id to be revoked
required: true
type: string
responses:
'200':
description: OK
x-ibm-configuration:
testable: true
enforced: true
phase: realized
oauth2:
client-type: confidential
scopes:
weather: Weather Information
openid: Enable OIDC
grants:
- password
- accessCode
- application
- implicit
identity-extraction:
type: basic
authentication:
x-ibm-authentication-url:
url: 'https://$(api.endpoint.address):9443/utility/basic-auth/spoon/spoon'
tls-profile: ''
authorization:
type: authenticated
access-token:
ttl: 3600
refresh-token:
count: 2048
ttl: 2682000
gateway: datapower-gateway
assembly:
execute:
- set-variable:
title: set-variable
actions:
- set: iss.claim
value: $(OIDCIssuer)
- set: sign-jwk
value: $(JWSSignPrivateKey)
- set: jwt.sign.algorithm
value: $(JWSAlgorithm)
- set: oidc.custom.claim
value: '{"disclaimer":"For OpenBanking OIDC demo purpose"}'
version: 1.0.0
- switch:
title: switch
case:
- condition: >-
(((request.verb==='GET')&&(api.operation.path==='/oauth2/authorize'))||((request.verb==='POST')&&(api.operation.path==='/oauth2/authorize'))
&& new String (apim.getvariable
('message.status.code')).startsWith ('302'))
execute:
- xslt:
title: xslt
input: false
version: 1.0.0
source: >-
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:dp="http://www.datapower.com/extensions"
xmlns:apim="http://www.ibm.com/apimanagement"
extension-element-prefixes="dp apim"
exclude-result-prefixes="dp apim">
<xsl:include href="local:///isp/policy/apim.setvariable-impl.xsl" dp:ignore-multiple="yes"/>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="string(dp:variable('var://context/_apimgmt/multi-response-type')) != '' and
(contains(dp:http-response-header('Location'), '?code=') or
contains(dp:http-response-header('Location'), '&code='))">
<xsl:call-template name="apim:setVariableImpl">
<xsl:with-param name="rawName" select="'oidc-location'"/>
<xsl:with-param name="rawValue" select="dp:http-response-header('Location')"/>
<xsl:with-param name="action" select="'set'"/>
</xsl:call-template>
<xsl:call-template name="apim:setVariableImpl">
<xsl:with-param name="rawName" select="'oidc-credential'"/>
<xsl:with-param name="rawValue" select="string(dp:variable('var://context/_apimgmt/authenticated-username'))"/>
<xsl:with-param name="action" select="'set'"/>
</xsl:call-template>
</xsl:when> <!-- temporary az code -->
<xsl:when test="starts-with(dp:http-response-header('x-dp-response-code'), '302') and
contains(dp:http-response-header('Location'), 'access_token')">
<xsl:variable name="scope" select="substring-before(substring-after(dp:http-response-header('Location'), 'scope='), '&')"/>
<xsl:if test="($scope = 'openid') or
contains($scope, '+openid+') or
starts-with($scope, 'openid+') or
ends-with($scope, '+openid')">
<xsl:call-template name="apim:setVariableImpl">
<xsl:with-param name="rawName" select="'oidc-location'"/>
<xsl:with-param name="rawValue" select="dp:http-response-header('Location')"/>
<xsl:with-param name="action" select="'set'"/>
</xsl:call-template>
<xsl:call-template name="apim:setVariableImpl">
<xsl:with-param name="rawName" select="'oidc-credential'"/>
<xsl:with-param name="rawValue" select="string(dp:variable('var://context/_apimgmt/authenticated-username'))"/>
<xsl:with-param name="action" select="'set'"/>
</xsl:call-template>
</xsl:if>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
- condition: >-
((request.verb==='POST')&&(api.operation.path==='/oauth2/token'))
execute:
- gatewayscript:
title: gatewayscript
version: 1.0.0
source: >-
let _apimgmt = session.name('_apimgmt');
let grantType = _apimgmt.getVariable('requested-grant-type');
if (grantType === 'password' || grantType === 'code') {
// get scope
var splitScope = (apim.getvariable('message.body').scope || '').split(' ');
if (splitScope.length === 0) {
var vScopeNode = session.name('INPUT').getVariable('oauth/verified-scope').item(0).childNodes;
if (vScopeNode !== undefined && vScopeNode !== null) {
let vScope = vScopeNode.item(0).textContent;
splitScope = vScope.split(' ');
}
}
for (let i = 0; i < splitScope.length; i++) {
if (splitScope[i] === 'openid') {
let userIdentity = _apimgmt.getVariable('authenticated-username');
apim.setvariable('oidc-credential', userIdentity, 'set');
}
}
}
version: 1.0.0
- if:
title: if
condition: apim.getvariable('oidc-credential') !== undefined
execute:
- xslt:
title: xslt
input: false
version: 1.0.0
source: >-
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:dp="http://www.datapower.com/extensions"
xmlns:apim="http://www.ibm.com/apimanagement"
xmlns:dpfunc="http://www.datapower.com/extensions/functions"
xmlns:str="http://exslt.org/strings"
extension-element-prefixes="dp apim dpfunc str"
exclude-result-prefixes="dp apim dpfunc str">
<xsl:include href="local:///isp/policy/apim.setvariable-impl.xsl" dp:ignore-multiple="yes"/>
<xsl:include href="store:///utilities.xsl" dp:ignore-multiple="yes"/>
<xsl:template match="/">
<!-- calculate at_hash, c_hash, and s_hash -->
<!-- DP Firmware release 760 contain context variable
var://context/AAA/oauth-token which will
provide the input data and output data for token generation
IMPORTANT : make sure the algorithm is the same algorithm JWT will be used
-->
<xsl:variable name="algorithm" select="apim:getVariableImpl('jwt.sign.algorithm','false')"/>
<xsl:variable name="oauth-data" select="dp:variable('var://context/AAA/oauth-token')"/>
<xsl:variable name="token-claim">
<xsl:text>{</xsl:text>
<xsl:choose>
<xsl:when test="$oauth-data/output/result/code != ''">
<xsl:text>"c_hash":"</xsl:text>
<xsl:value-of select="dpfunc:access_token-2-at_hash($oauth-data/output/result/code, $algorithm)"/>
<xsl:text>"</xsl:text>
<dp:set-local-variable name="'set-value'" value="'true'"/>
</xsl:when>
<xsl:when test="$oauth-data/output/result/access_token != ''">
<xsl:text>"at_hash":"</xsl:text>
<xsl:value-of select="dpfunc:access_token-2-at_hash($oauth-data/output/result/access_token, $algorithm)"/>
<xsl:text>"</xsl:text>
<dp:set-local-variable name="'set-value'" value="'true'"/>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
<xsl:choose>
<xsl:when test="dp:variable('var://context/_apimgmt/oauth/request')/request/args/arg[@name='state'] != ''">
<xsl:if test="dp:local-variable('set-value') = 'true'">
<xsl:text>,</xsl:text>
</xsl:if>
<xsl:text>"s_hash":"</xsl:text>
<xsl:value-of select="dpfunc:access_token-2-at_hash(dp:variable('var://context/_apimgmt/oauth/request')/request/args/arg[@name='state'], $algorithm)"/>
<xsl:text>"</xsl:text>
<dp:set-local-variable name="'set-value'" value="'true'"/>
</xsl:when>
<xsl:when test="dp:variable('var://context/_apimgmt/oauth/request')/request/args/arg[@name='dp-data'] != '' and
not(ends-with(dp:variable('var://context/_apimgmt/oauth/request')/request/args/arg[@name='dp-data'], ':'))">
<xsl:if test="dp:local-variable('set-value') = 'true'">
<xsl:text>,</xsl:text>
</xsl:if>
<xsl:text>"s_hash":"</xsl:text>
<xsl:value-of select="dpfunc:access_token-2-at_hash(str:tokenize(dp:variable('var://context/_apimgmt/oauth/request')/request/args/arg[@name='dp-data'],':')[last()], $algorithm)"/>
<xsl:text>"</xsl:text>
<dp:set-local-variable name="'set-value'" value="'true'"/>
<!-- last part of the dp-data is state -->
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
<!-- does request contain nonce -->
<xsl:if test="dp:variable('var://context/_apimgmt/oidc-nonce') != ''">
<xsl:if test="dp:local-variable('set-value') = 'true'">
<xsl:text>,</xsl:text>
</xsl:if>
<xsl:text>"nonce":"</xsl:text>
<xsl:value-of select="dp:variable('var://context/_apimgmt/oidc-nonce')"/>
<xsl:text>"</xsl:text>
<dp:set-local-variable name="'set-value'" value="'true'"/>
</xsl:if>
<xsl:variable name="custom-claim" select="string(apim:getVariableImpl('oidc.custom.claim'))"/>
<xsl:if test="$custom-claim != ''">
<xsl:if test="dp:local-variable('set-value') = 'true'">
<xsl:text>,</xsl:text>
</xsl:if>
<xsl:choose>
<xsl:when test="starts-with($custom-claim, '{') and ends-with($custom-claim, '}')">
<xsl:value-of select="substring($custom-claim, 2, string-length($custom-claim) - 2)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>"custom_attribute":"</xsl:text>
<xsl:value-of select="dp:encode($custom-claim,'base-64')"/>
<xsl:text>"</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:text>}</xsl:text>
</xsl:variable>
<xsl:call-template name="apim:setVariableImpl">
<xsl:with-param name="rawName" select="'added.claim'"/>
<xsl:with-param name="rawValue" select="$token-claim"/>
<xsl:with-param name="action" select="'set'"/>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
- jwt-generate:
title: jwt-generate
iss-claim: iss.claim
exp-claim: 3600
version: 1.0.0
jwt: idtoken
jti-claim: true
sub-claim: oidc-credential
aud-claim: client.app.id
private-claims: added.claim
jws-alg: RS256
jws-jwk: sign-jwk
- gatewayscript:
title: gatewayscript
version: 1.0.0
source: >-
let grantType =
session.name('_apimgmt').getVariable('requested-grant-type');
if (grantType === 'implicit') {
// regression in 5070 will not allow access, and modification to the location header
let location = apim.getvariable('oidc-location') + '&id_token=' + apim.getvariable("idtoken");
// work around is to use xslt
apim.setvariable('oidc-location', location);
}
else {
if (apim.getvariable('oidc-location') !== undefined && apim.getvariable('oidc-location').indexOf('code=') !== -1) {
let location = apim.getvariable('oidc-location') + '&id_token=' + apim.getvariable("idtoken");
apim.setvariable('oidc-location', location);
}
else {
let token = apim.getvariable("message.body");
token["id_token"] = apim.getvariable("idtoken");
apim.setvariable("message.body", JSON.stringify(token));
}
}
- if:
title: if
condition: >-
new String
(apim.getvariable('message.status.code')).startsWith('302')
execute:
- xslt:
title: xslt
input: false
version: 1.0.0
source: >
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:dp="http://www.datapower.com/extensions"
xmlns:apim="http://www.ibm.com/apimanagement"
extension-element-prefixes="dp apim"
exclude-result-prefixes="dp apim">
<xsl:include href="local://isp/policy/apim.setvariable-impl.xsl" dp:ignore-multiple="yes"/>
<xsl:template match="/">
<xsl:variable name="loc" select="apim:getVariableImpl('oidc-location')"/>
<dp:set-http-response-header name="'Location'" value="$loc"/>
</xsl:template>
</xsl:stylesheet>
version: 1.0.0
version: 1.0.0
catch: []
properties:
JWSSignPrivateKey:
value: >-
{ "kty": "RSA", "d":
"ZgiybjfeIsoihPMRQpT9Yv5Qfvg5AaqdGRK8mb1G73_CrOjpTbXjs7t0AKKNTGFUlvla4ag9kof4qzA7EB0Kgpsn05668sQtenIkz83pP1v7MaM31YovGq1WCmCpV8lJvuaSAP06ueRmEYG5zhtT9lK3TVxvuYwCd_Ukfe0M3R3ajyLEvPLhnwS5mybAj0mP5lat1l29qXhC-WNhDRZfl6NdVge4yGyKLsNAXqWw0bi3ARE3dYPt7J36cqoET4agwOjjupxY8Ctv1tFw7Xj3lcUBciT_tYi3tKVs8ALalTQ-MHOXHEdDXaAxzgmLVgFD05bbE55OL25MLSvoD0bLAQ",
"e": "AQAB", "use": "sig", "kid": "spoon", "alg": "RS256", "n":
"iE7cj97VkW-QXXU0U9Fedjl7digjnp_R7lx6LHLugHfS5Xp26GCxOO1pNktSHsfof5EMJ0y8iqtIH4X3QYLg6E6fEZQD4-ZpIaKhTDuel1Zls_NRFgrQ0gzB3oiNJbNMfbNLpx4hCauRRv_RqRb1__jkBRIiU3MrEmB6gBDBQYJ9vwcYDXT5qowAopoZk6p1bf6kftMswVoFsILt9XdBynTHcLPyj61mP0faUb5_VRkpXaCbyCn4G1XakKswqzSkULImNQykaK_I6IJ0CGI0gnnx5YmwNbo4AYS-8fDODXfThDZC12TM_BlCGQMAao2jSSXaebI1nyxmgaYV1oChbw"
}
description: ''
encoded: false
OIDCIssuer:
value: IBM APIc
description: ''
encoded: false
JWSAlgorithm:
value: RS256
description: ''
encoded: false
definitions:
access_token_response:
type: object
additionalProperties: false
required:
- token_type
- access_token
- expires_in
properties:
token_type:
enum:
- bearer
access_token:
type: string
expires_in:
type: integer
scope:
type: string
refresh_token:
type: string
introspect_response:
type: object
additionalProperties: false
required:
- active
- client_id
- client_name
- username
- sub
- exp
- expstr
- iat
- nbf
- nbfstr
- scope
properties:
active:
type: boolean
client_id:
type: string
client_name:
type: string
username:
type: string
sub:
type: string
exp:
type: string
expstr:
type: string
iat:
type: string
nbf:
type: string
nbfstr:
type: string
scope:
type: string
miscinfo:
type: string
consented_on:
type: string
consented_on_str:
type: string
grant_type:
type: string
issued_response:
type: object
additionalProperties: false
required:
- clientId
- owner
- scope
- issuedAt
- expiredAt
- refreshTokenIssued
properties:
clientId:
type: string
clientName:
type: string
owner:
type: string
scope:
type: string
issuedAt:
type: string
expiredAt:
type: string
refreshTokenIssued:
type: boolean
miscInfo:
type: string
consentedOn:
type: string
appId:
type: string
org:
type: string
orgId:
type: string
catalog:
type: string
catalogId:
type: string
issued_responses:
type: array
items:
$ref: '#/definitions/issued_response'
externalDocs:
url: >-
https://www.ibm.com/support/knowledgecenter/SSMNED_5.0.0/com.ibm.apic.toolkit.doc/tapic_sec_api_config_oidc.html
description: Securing your APIs with OpenID Connect