Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.stytch.java.b2b.models.organizationsmembersoauthproviders
// !!!
// WARNING: This file is autogenerated
// Only modify code within MANUAL() sections
// or your changes may be overwritten later!
// !!!
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* Response type for `OAuthProviders.google`.
*/
@JsonClass(generateAdapter = true)
public data class GoogleResponse
@JvmOverloads
constructor(
/**
* Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we
* may ask for this value to help identify a specific API call when helping you debug an issue.
*/
@Json(name = "request_id")
val requestId: String,
/**
* Denotes the OAuth identity provider that the user has authenticated with, e.g. Google, Microsoft, GitHub etc.
*/
@Json(name = "provider_type")
val providerType: String,
/**
* The unique identifier for the User within a given OAuth provider. Also commonly called the `sub` or "Subject field" in
* OAuth protocols.
*/
@Json(name = "provider_subject")
val providerSubject: String,
/**
* The `access_token` that you may use to access the User's data in the provider's API.
*/
@Json(name = "access_token")
val accessToken: String,
/**
* The number of seconds until the access token expires.
*/
@Json(name = "access_token_expires_in")
val accessTokenExpiresIn: Int,
/**
* The `id_token` returned by the OAuth provider. ID Tokens are JWTs that contain structured information about a user. The
* exact content of each ID Token varies from provider to provider. ID Tokens are returned from OAuth providers that
* conform to the [OpenID Connect](https://openid.net/foundation/) specification, which is based on OAuth.
*/
@Json(name = "id_token")
val idToken: String,
/**
* The OAuth scopes included for a given provider. See each provider's section above to see which scopes are included by
* default and how to add custom scopes.
*/
@Json(name = "scopes")
val scopes: List,
/**
* The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
* equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
*/
@Json(name = "status_code")
val statusCode: Int,
/**
* The `refresh_token` that you may use to obtain a new `access_token` for the User within the provider's API.
*/
@Json(name = "refresh_token")
val refreshToken: String? = null,
)
/**
* Response type for `OAuthProviders.microsoft`.
*/
@JsonClass(generateAdapter = true)
public data class MicrosoftResponse
@JvmOverloads
constructor(
/**
* Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we
* may ask for this value to help identify a specific API call when helping you debug an issue.
*/
@Json(name = "request_id")
val requestId: String,
/**
* Denotes the OAuth identity provider that the user has authenticated with, e.g. Google, Microsoft, GitHub etc.
*/
@Json(name = "provider_type")
val providerType: String,
/**
* The unique identifier for the User within a given OAuth provider. Also commonly called the `sub` or "Subject field" in
* OAuth protocols.
*/
@Json(name = "provider_subject")
val providerSubject: String,
/**
* The `access_token` that you may use to access the User's data in the provider's API.
*/
@Json(name = "access_token")
val accessToken: String,
/**
* The number of seconds until the access token expires.
*/
@Json(name = "access_token_expires_in")
val accessTokenExpiresIn: Int,
/**
* The `id_token` returned by the OAuth provider. ID Tokens are JWTs that contain structured information about a user. The
* exact content of each ID Token varies from provider to provider. ID Tokens are returned from OAuth providers that
* conform to the [OpenID Connect](https://openid.net/foundation/) specification, which is based on OAuth.
*/
@Json(name = "id_token")
val idToken: String,
/**
* The OAuth scopes included for a given provider. See each provider's section above to see which scopes are included by
* default and how to add custom scopes.
*/
@Json(name = "scopes")
val scopes: List,
/**
* The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
* equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
*/
@Json(name = "status_code")
val statusCode: Int,
/**
* The `refresh_token` that you may use to obtain a new `access_token` for the User within the provider's API.
*/
@Json(name = "refresh_token")
val refreshToken: String? = null,
)
/**
* Request type for `OAuthProviders.google`, `OAuthProviders.microsoft`.
*/
@JsonClass(generateAdapter = true)
public data class ProviderInformationRequest
@JvmOverloads
constructor(
/**
* Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations
* on an Organization, so be sure to preserve this value.
*/
@Json(name = "organization_id")
val organizationId: String,
/**
* Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member,
* so be sure to preserve this value.
*/
@Json(name = "member_id")
val memberId: String,
/**
* Whether to return the refresh token Stytch has stored for the OAuth Provider. Defaults to false. **Important:** If your
* application exchanges the refresh token, Stytch may not be able to automatically refresh access tokens in the future.
*/
@Json(name = "include_refresh_token")
val includeRefreshToken: Boolean? = null,
)