-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SSO (Single Sign-On) support (#2693)
Fixes #2273 --------- Co-authored-by: Ivan Manzhosov <[email protected]> Co-authored-by: Jan Cizmar <[email protected]>
- Loading branch information
1 parent
32ca0ec
commit d78e421
Showing
96 changed files
with
3,508 additions
and
262 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
22 changes: 22 additions & 0 deletions
22
backend/api/src/main/kotlin/io/tolgee/hateoas/ee/SsoTenantModel.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,22 @@ | ||
package io.tolgee.hateoas.ee | ||
|
||
import io.tolgee.api.ISsoTenant | ||
import org.springframework.hateoas.RepresentationModel | ||
import org.springframework.hateoas.server.core.Relation | ||
import java.io.Serializable | ||
|
||
@Suppress("unused") | ||
@Relation(collectionRelation = "ssoTenants", itemRelation = "ssoTenant") | ||
class SsoTenantModel( | ||
val enabled: Boolean, | ||
override val authorizationUri: String, | ||
override val clientId: String, | ||
override val clientSecret: String, | ||
override val tokenUri: String, | ||
override val domain: String, | ||
) : ISsoTenant, | ||
RepresentationModel<SsoTenantModel>(), | ||
Serializable { | ||
override val global: Boolean | ||
get() = false | ||
} |
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
Oops, something went wrong.