-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from vimeo/sso-connections
Adding SsoConnections DTO and associated endpoint
- Loading branch information
Showing
10 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
models/src/main/java/com/vimeo/networking2/SsoConnection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.vimeo.networking2 | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
import com.vimeo.networking2.annotations.Internal | ||
|
||
/** | ||
* A connection used to log into Vimeo via Single Sign-On. | ||
* | ||
* @param connectionName The name of the connection. | ||
* @param metadata The metadata containing the interactions of the connection. | ||
* @param uri The URI of the connection. | ||
*/ | ||
@Internal | ||
@JsonClass(generateAdapter = true) | ||
data class SsoConnection( | ||
|
||
@Json(name = "connection_name") | ||
val connectionName: String? = null, | ||
|
||
@Json(name = "metadata") | ||
val metadata: MetadataInteractions<SsoConnectionInteractions>? = null, | ||
|
||
@Json(name = "uri") | ||
val uri: String? = null | ||
) |
18 changes: 18 additions & 0 deletions
18
models/src/main/java/com/vimeo/networking2/SsoConnectionInteractions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.vimeo.networking2 | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
import com.vimeo.networking2.annotations.Internal | ||
|
||
/** | ||
* The interaction for an Single Sign-On connection. | ||
* | ||
* @param connect The interaction to connect via Single Sign-On. | ||
*/ | ||
@Internal | ||
@JsonClass(generateAdapter = true) | ||
data class SsoConnectionInteractions( | ||
|
||
@Json(name = "connect") | ||
val connect: BasicInteraction? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters