Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Dec 18, 2019
1 parent b5b5743 commit 1ac4a79
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 18 deletions.
47 changes: 31 additions & 16 deletions products/identityplatform/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ objects:
name: 'clientId'
description: |
OAuth client ID
input: true
required: true
- !ruby/object:Api::Type::String
name: 'clientSecret'
Expand Down Expand Up @@ -83,18 +84,20 @@ objects:
name: 'tenant'
required: true
url_param_only: true
input: true
description: |
The name of the tenant where this DefaultSupportedIdpConfig resource exists
- !ruby/object:Api::Type::String
name: 'clientId'
input: true
required: true
description: |
OAuth client ID
required: true
- !ruby/object:Api::Type::String
name: 'clientSecret'
required: true
description: |
OAuth client secret
required: true
- !ruby/object:Api::Type::Boolean
name: 'enabled'
description: |
Expand All @@ -115,20 +118,21 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'name'
required: true
input: true
description: |
The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
required: true
- !ruby/object:Api::Type::String
name: 'displayName'
required: true
description: |
Human friendly display name.
required: true
- !ruby/object:Api::Type::Boolean
name: 'enabled'
description: |
If allows users to sign in with the provider.
If this config allows users to sign in with the provider.
- !ruby/object:Api::Type::NestedObject
name: 'idpConfig'
required: true
Expand Down Expand Up @@ -184,6 +188,7 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'x509Certificate'
output: true
description: |
The x509 certificate
- !ruby/object:Api::Resource
Expand All @@ -202,26 +207,28 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'name'
required: true
input: true
description: |
The name of the InboundSamlConfig resource. Must start with 'saml.' and can only have alphanumeric characters,
hyphens, underscores or periods. The part after 'saml.' must also start with a lowercase letter, end with an
alphanumeric character, and have at least 2 characters.
required: true
- !ruby/object:Api::Type::String
name: 'displayName'
description: |
Human friendly display name.
required: true
- !ruby/object:Api::Type::String
name: 'tenant'
required: true
input: true
url_param_only: true
description: |
The name of the tenant where this inbound SAML config resource exists
- !ruby/object:Api::Type::String
name: 'displayName'
required: true
description: |
Human friendly display name.
- !ruby/object:Api::Type::Boolean
name: 'enabled'
description: |
If allows users to sign in with the provider.
If this config allows users to sign in with the provider.
- !ruby/object:Api::Type::NestedObject
name: 'idpConfig'
required: true
Expand Down Expand Up @@ -262,10 +269,12 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'spEntityId'
required: true
description: |
Unique identifier for all SAML entities.
- !ruby/object:Api::Type::String
name: 'callbackUri'
required: true
description: |
Callback URI where responses from IDP are handled. Must start with `https://`.
- !ruby/object:Api::Type::Array
Expand All @@ -277,6 +286,7 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'x509Certificate'
output: true
description: |
The x509 certificate
- !ruby/object:Api::Resource
Expand All @@ -295,17 +305,18 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'name'
required: true
input: true
description: |
The name of the OauthIdpConfig. Must start with `oidc.`.
required: true
- !ruby/object:Api::Type::String
name: 'displayName'
description: |
Human friendly display name.
- !ruby/object:Api::Type::Boolean
name: 'enabled'
description: |
If allows users to sign in with the provider.
If this config allows users to sign in with the provider.
- !ruby/object:Api::Type::String
name: 'issuer'
description: |
Expand Down Expand Up @@ -336,23 +347,26 @@ objects:
properties:
- !ruby/object:Api::Type::String
name: 'name'
required: true
input: true
description: |
The name of the OauthIdpConfig. Must start with `oidc.`.
required: true
- !ruby/object:Api::Type::String
name: 'tenant'
required: true
url_param_only: true
input: true
description: |
The name of the tenant where this OIDC IDP configuration resource exists
- !ruby/object:Api::Type::String
name: 'displayName'
required: true
description: |
Human friendly display name.
- !ruby/object:Api::Type::Boolean
name: 'enabled'
description: |
If allows users to sign in with the provider.
If this config allows users to sign in with the provider.
- !ruby/object:Api::Type::String
name: 'issuer'
description: |
Expand Down Expand Up @@ -390,6 +404,7 @@ objects:
output: true
- !ruby/object:Api::Type::String
name: 'displayName'
required: true
description: |
Human friendly display name of the tenant.
- !ruby/object:Api::Type::Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ resource "google_identity_platform_default_supported_idp_config" "<%= ctx[:prima
enabled = true
client_id = "playgames.google.com"
client_secret = "secret"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resource "google_identity_platform_tenant_default_supported_idp_config" "<%= ctx
tenant = google_identity_platform_tenant.tenant.name
client_id = "playgames.google.com"
client_secret = "secret"
}
}

0 comments on commit 1ac4a79

Please sign in to comment.