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.