Skip to content

Commit

Permalink
fix: jans-cli auto-generated files separately (closes #2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Nov 1, 2022
1 parent 1235cd6 commit bb1cb24
Show file tree
Hide file tree
Showing 8 changed files with 2,364 additions and 12,433 deletions.
268 changes: 153 additions & 115 deletions jans-cli-tui/cli/config_cli.py

Large diffs are not rendered by default.

10,211 changes: 0 additions & 10,211 deletions jans-cli-tui/cli/jca.json

This file was deleted.

38 changes: 0 additions & 38 deletions jans-cli-tui/cli/merger.py

This file was deleted.

199 changes: 199 additions & 0 deletions jans-cli-tui/cli/ops/jca/fido2-plugin-swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
openapi: 3.0.1
info:
title: Jans Config API - Fido2
contact:
name: Gluu Support
url: https://support.gluu.org
email: xxx@gluu.org
license:
name: Apache 2.0
url: https://github.com/JanssenProject/jans/blob/main/LICENSE
version: 1.0.0
servers:
- url: https://jans.io/
description: The Jans server
variables: {}
tags:
- name: Fido2 - Configuration
paths:
/fido2/config:
get:
tags:
- Fido2 - Configuration
summary: Gets Jans Authorization Server Fido2 configuration properties
description: Gets Jans Authorization Server Fido2 configuration properties
operationId: get-properties-fido2
responses:
"200":
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/DbApplicationConfiguration'
"401":
description: Unauthorized
"500":
description: InternalServerError
security:
- oauth2:
- https://jans.io/oauth/config/fido2.readonly
put:
tags:
- Fido2 - Configuration
summary: Updates Fido2 configuration properties
description: Updates Fido2 configuration properties
operationId: put-properties-fido2
requestBody:
description: Fido2Config
content:
application/json:
schema:
$ref: '#/components/schemas/DbApplicationConfiguration'
responses:
"200":
description: Fido2Config
content:
application/json:
schema:
type: string
"401":
description: Unauthorized
"500":
description: InternalServerError
security:
- oauth2:
- https://jans.io/oauth/config/fido2.write
/fido2/registration/entries/{username}:
get:
tags:
- Fido2 - Registration
summary: Get details of connected FIDO2 devices registered to user
description: Get details of connected FIDO2 devices registered to user
operationId: get-registration-entries-fido2
parameters:
- name: username
in: path
required: true
schema:
type: string
responses:
"200":
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Fido2RegistrationEntry'
"401":
description: Unauthorized
"500":
description: InternalServerError
security:
- oauth2:
- https://jans.io/oauth/config/fido2.readonly
components:
schemas:
DbApplicationConfiguration:
type: object
properties:
dn:
type: string
dynamicConf:
type: string
revision:
type: integer
format: int64
Fido2RegistrationData:
type: object
properties:
createdDate:
type: string
format: date-time
updatedDate:
type: string
format: date-time
createdBy:
type: string
updatedBy:
type: string
username:
type: string
domain:
type: string
userId:
type: string
challenge:
type: string
attenstationRequest:
type: string
attenstationResponse:
type: string
uncompressedECPoint:
type: string
publicKeyId:
type: string
type:
type: string
status:
type: string
enum:
- pending
- registered
- compromised
counter:
type: integer
format: int32
attestationType:
type: string
signatureAlgorithm:
type: integer
format: int32
applicationId:
type: string
Fido2RegistrationEntry:
type: object
properties:
dn:
type: string
id:
type: string
challange:
type: string
creationDate:
type: string
format: date-time
userInum:
type: string
publicKeyId:
type: string
displayName:
type: string
registrationData:
$ref: '#/components/schemas/Fido2RegistrationData'
counter:
type: integer
format: int32
registrationStatus:
type: string
enum:
- pending
- registered
- compromised
deviceNotificationConf:
type: string
challangeHash:
type: string
baseDn:
type: string
securitySchemes:
oauth2:
type: oauth2
flows:
clientCredentials:
tokenUrl: "https://{op-hostname}/.../token"
scopes:
https://jans.io/oauth/config/fido2.readonly: View fido2 configuration
related information
https://jans.io/oauth/config/fido2.write: Manage fido2 configuration related
information
Loading

0 comments on commit bb1cb24

Please sign in to comment.