Skip to content

Commit

Permalink
v0.4.6 (#117)
Browse files Browse the repository at this point in the history
* authentication

* env var fields

* readme updates
  • Loading branch information
Jmfwolf committed Apr 18, 2023
1 parent 42c90eb commit 8064be7
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 251 deletions.
441 changes: 212 additions & 229 deletions README.md

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions docs/data-sources/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,17 @@ Optional:
- `access_token_expiration_minutes` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `login_url` (String) OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App.
- `oidc_api_version` (String)
- `oidc_application_type` (Number) OIDC Apps Only - 0: Web - 1: Native/Mobile
- `oidc_application_type` (Number) OIDC Apps Only
- 0: Web
- 1: Native/Mobile
- `oidc_encryption_key` (String) OIDC Apps only
- `post_logout_redirect_uri` (String) OIDC Apps only
- `redirect_uri` (String) OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow.
- `refresh_token_expiration_minutes` (Number)
- `token_endpoint_auth_method` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `refresh_token_expiration_minutes` (Number) Number of minutes the refresh token will be valid for.
- `token_endpoint_auth_method` (Number) OIDC Apps only
- 0: Basic
- 1: POST
- 2: None / PKCE


<a id="nestedblock--enforcement_point"></a>
Expand Down
11 changes: 8 additions & 3 deletions docs/data-sources/apps_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,17 @@ Optional:
- `access_token_expiration_minutes` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `login_url` (String) OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App.
- `oidc_api_version` (String)
- `oidc_application_type` (Number) OIDC Apps Only - 0: Web - 1: Native/Mobile
- `oidc_application_type` (Number) OIDC Apps Only
- 0: Web
- 1: Native/Mobile
- `oidc_encryption_key` (String) OIDC Apps only
- `post_logout_redirect_uri` (String) OIDC Apps only
- `redirect_uri` (String) OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow.
- `refresh_token_expiration_minutes` (Number)
- `token_endpoint_auth_method` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `refresh_token_expiration_minutes` (Number) Number of minutes the refresh token will be valid for.
- `token_endpoint_auth_method` (Number) OIDC Apps only
- 0: Basic
- 1: POST
- 2: None / PKCE


<a id="nestedblock--enforcement_point"></a>
Expand Down
11 changes: 8 additions & 3 deletions docs/resources/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ Optional:
- `access_token_expiration_minutes` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `login_url` (String) OIDC Apps only The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App.
- `oidc_api_version` (String)
- `oidc_application_type` (Number) OIDC Apps Only - 0: Web - 1: Native/Mobile
- `oidc_application_type` (Number) OIDC Apps Only
- 0: Web
- 1: Native/Mobile
- `oidc_encryption_key` (String) OIDC Apps only
- `post_logout_redirect_uri` (String) OIDC Apps only
- `redirect_uri` (String) OIDC Apps only Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow.
- `refresh_token_expiration_minutes` (Number)
- `token_endpoint_auth_method` (Number) OIDC Apps only Number of minutes the refresh token will be valid for.
- `refresh_token_expiration_minutes` (Number) Number of minutes the refresh token will be valid for.
- `token_endpoint_auth_method` (Number) OIDC Apps only
- 0: Basic
- 1: POST
- 2: None / PKCE


<a id="nestedblock--enforcement_point"></a>
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
//log.Printf("[INFO] Initializing OpenAPI Terraform provider '%s' with service provider's OpenAPI document: %s", ProviderName, ProviderOpenAPIURL)

var providerName = "onelogin"
var providerOpenAPIURL = "https://raw.githubusercontent.com/onelogin/terraform-provider-onelogin/develop/swag-api.yml"
var providerOpenAPIURL = "https://raw.githubusercontent.com/onelogin/terraform-provider-onelogin/tpoas/swag-api.yml"

p := openapi.ProviderOpenAPI{ProviderName: providerName}
serviceProviderConfig := &openapi.ServiceConfigV1{
Expand Down
22 changes: 10 additions & 12 deletions swag-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9049,17 +9049,16 @@ definitions:
example: 0
configuration:
description: Only apply configurations that are applicable to the type of app
x-terraform-computed: true
type: object
properties:
redirect_uri:
type: string
x-terraform-computed: true
description: >-
OIDC Apps only
Comma or newline separated list of valid redirect uris for the OpenId Connect Authorization Code flow.
login_url:
type: string
x-terraform-computed: true
description: >-
OIDC Apps only
The OpenId Connect Client Id. Note that client_secret is only returned after Creating an App.
Expand All @@ -9068,31 +9067,28 @@ definitions:
readOnly: true
oidc_encryption_key:
type: string
x-terraform-computed: true
description: OIDC Apps only
post_logout_redirect_uri:
type: string
x-terraform-computed: true
description: OIDC Apps only
refresh_token_expiration_minutes:
type: integer
readOnly: true
description: Number of minutes the refresh token will be valid for.
oidc_application_type:
type: integer
x-terraform-computed: true
description: >-
OIDC Apps Only
- 0: Web
- 1: Native/Mobile
- 0: Web
- 1: Native/Mobile
token_endpoint_auth_method:
type: integer
x-terraform-computed: true
description: >-
OIDC Apps only
Number of minutes the refresh token will be valid for.
- 0: Basic
- 1: POST
- 2: None / PKCE
access_token_expiration_minutes:
type: integer
x-terraform-computed: true
description: >-
OIDC Apps only
Number of minutes the refresh token will be valid for.
Expand Down Expand Up @@ -9864,7 +9860,9 @@ securityDefinitions:
name: Authorization
# name: "something" the name paramter will be ignored when using the 'x-terraform-authentication-scheme-bearer' extension, "Authorization" name will be use as default value
x-terraform-authentication-scheme-bearer: true

x-terraform-refresh-token-url: https://api.onelogin.com/auth/oauth2/v2/token
x-terraform-env-client-id: "ONELOGIN_CLIENT_ID"
x-terraform-env-client-secret: "ONELOGIN_CLIENT_SECRET"
tags:
- description: OAuth2
name: OAuth2
Expand Down

0 comments on commit 8064be7

Please sign in to comment.