Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #425
Closed
Open
Issue created Jul 01, 2018 by Administrator@rootContributor

OpenID Connect 1.0 Support

Created by: jessechahal

Description

I am trying to generate a java client jar of my openapi 3.0.0 yaml document. I noticed that the end client library does not have support for openID Connect 1.0. OpenAPI 3.0.0 is supposed to support this authenication scheme. Right now I do not see much different between using this codegen tool vs the one swagger provides for swagger1.5 codegen (other then you guys got the build.gradle file right).

openapi-generator version

homebrew java

OpenAPI declaration file content or url
openapi: 3.0.0
servers:
  - url: http://localhost:2020
  - url: http://localhost:8080
  - url: /candy
info:
  description: This service provides APIs to eat chocolate.
  version: 0.0.1
  title: chocolate Service
tags:
  - name: chocolates
components:
  securitySchemes:
    openId:   
      type: openIdConnect
      openIdConnectUrl: /auth/realms/master/.well-known/openid-configuration
security:
  - openId:  
    - openid
paths:
  /candy:
    post:
      tags:
        - chocolates
Command line used for generation

Exact command I ran was openapi-generator generate -i openapi_3.yml -g java -o openapi_3_java Looking at the generated files there does seem to be support for oauth2 but no support for openIDConnect in the .auth package.

Steps to reproduce
  • run the openapi code generator on a yaml/json file that follows openapi 3.0.0 spec. The Yaml file should specify openID connect authentication scheme.
Related issues/PRs

no, did a search and nothing came up.

Suggest a fix/enhancement

Goal should be to add openID connect support to match the openapi 3.0.0 spec.

Assignee
Assign to
Time tracking