Skip to content

[Kotlin][multiplatform] better authentication support#4284

Merged
wing328 merged 8 commits intoOpenAPITools:masterfrom
andrewemery:kotlin-multiplatform-auth
Oct 28, 2019
Merged

[Kotlin][multiplatform] better authentication support#4284
wing328 merged 8 commits intoOpenAPITools:masterfrom
andrewemery:kotlin-multiplatform-auth

Conversation

@andrewemery
Copy link
Contributor

Includes Kotlin Multiplatform auth classes:

  • api key
  • http basic
  • http bearer
  • oauth (partial support)

#4283

The Kotlinx serialization library uses reflectionless serialization and
requires compile-time serialization declarations. As a result, unknown
objects are mapped to Kotlin String instances to enable compilation
where object types are not explicitly defined.
Previously, objects that contained binary data were assigned the
InputProvider data type. This was suitable for a binary input form
parameter, but unsuitable for Base64 or octet binary strings. These
binary strings are now assigned a more suitable object.
Includes support for:
- api key
- http basic
- http bearer
- oauth (partial support)

OpenAPITools#4283
@wing328
Copy link
Member

wing328 commented Oct 28, 2019

Tested locally with different authentication schema and the code compiles fine.

@wing328
Copy link
Member

wing328 commented Oct 28, 2019

cc @jimschubert (2017/09) , @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04)

@wing328 wing328 merged commit d92d84b into OpenAPITools:master Oct 28, 2019
@wing328 wing328 changed the title Kotlin multiplatform auth [Kotlin][multiplatform] better authentication support Oct 28, 2019
@wing328
Copy link
Member

wing328 commented Oct 31, 2019

@andrewemery thanks for the PR, which has been included in v4.2.0 release: https://twitter.com/oas_generator/status/1189824932345069569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants