summaryrefslogtreecommitdiff
path: root/src/mongo/client/sasl_oidc_client_params.idl
diff options
context:
space:
mode:
authorVarun Ravichandran <varun.ravichandran@mongodb.com>2023-02-10 15:17:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-02 20:14:45 +0000
commit762d550c204b289fa81cd005e47c6753ece6ba5b (patch)
tree083a9ce587063e40d48968b2b51d1cdb16fd11f2 /src/mongo/client/sasl_oidc_client_params.idl
parentcd29ac28a87681905b2a47f1378661bba0a96275 (diff)
downloadmongo-762d550c204b289fa81cd005e47c6753ece6ba5b.tar.gz
SERVER-70703: Implement OIDC refresh flow in legacy shell
Diffstat (limited to 'src/mongo/client/sasl_oidc_client_params.idl')
-rw-r--r--src/mongo/client/sasl_oidc_client_params.idl33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mongo/client/sasl_oidc_client_params.idl b/src/mongo/client/sasl_oidc_client_params.idl
index af073911e2d..0ea16c025ca 100644
--- a/src/mongo/client/sasl_oidc_client_params.idl
+++ b/src/mongo/client/sasl_oidc_client_params.idl
@@ -19,3 +19,36 @@ configs:
grant flow.
arg_vartype: String
cpp_varname: oidcClientGlobalParams.oidcAccessToken
+
+structs:
+ OIDCDeviceAuthorizationResponse:
+ description: "IdP response from the deviceAuthorization endpoint."
+ strict: false
+ fields:
+ device_code:
+ description: "Device code to use in token request"
+ cpp_name: deviceCode
+ type: string
+ verification_uri_complete:
+ description: "URI for end user authentication"
+ cpp_name: verificationUriComplete
+ type: string
+
+ OIDCTokenResponse:
+ description: IdP response from the token endpoint.
+ strict: false
+ fields:
+ access_token:
+ description: "Access token returned to be sent to the server."
+ cpp_name: accessToken
+ type: string
+ optional: true
+ refresh_token:
+ description: "Refresh token returned to be used for token reacquisition."
+ cpp_name: refreshToken
+ type: string
+ optional: true
+ error:
+ description: "Error message returned by the token endpoint."
+ type: string
+ optional: true