swagger-api/swagger-codegen

[C#]Would be nice if code generated adds implementation for handling refresh tokens

開放

#5,848 建立於 2017年6月14日

 (11 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: C-SharpEnhancement: FeatureGeneral: Suggestionhelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Description

I think it would be nice if there was some sort of implementation in the generated code that handles Oauth2 Refresh Tokens. I am thinking there would be a configuration option that enables auto refresh, and the generated code would then check the expires time of the token and automatically call to refresh the auth token if it has expired and the configuration flag is set. Currently, I have two options to do this how the code is generated itself. I either have to add the code into the project before making the dll, or I have to manually check this info on the consumption side of things.

Swagger-codegen version

Master

貢獻者指南