-
Notifications
You must be signed in to change notification settings - Fork 2
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 #16 from l-with/add-resource-oauth2-client
add resource oauth2 client
- Loading branch information
Showing
15 changed files
with
605 additions
and
12 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
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,37 @@ | ||
--- | ||
page_title: "mailcow_oauth2_client Resource - terraform-provider-mailcow" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# mailcow_oauth2_client (Resource) | ||
|
||
Provides an OAuth2 client for mailcow. | ||
This can be used to create and delete OAuth2 clients for mailcow. | ||
|
||
## Example Usage | ||
```terraform | ||
resource "mailcow_oauth2_client" "client" { | ||
redirect_uri = "https:/redirect.uri" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `redirect_uri` (String) | ||
|
||
### Read-Only | ||
|
||
- `client_id` (String) | ||
- `client_secret` (String, Sensitive) | ||
- `id` (String) The ID of this resource. | ||
- `scope` (String) | ||
|
||
## Restriction | ||
|
||
The mailcow API does not return the id of the OAuth2 client as response for creation. | ||
As workaround the redirect uri is used as identifier for the resource. | ||
As consequence creation of an OAuth2 client with an existing redirect uri is prohibited. |
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,3 @@ | ||
resource "mailcow_oauth2_client" "client" { | ||
redirect_uri = "https:/redirect.uri" | ||
} |
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
Oops, something went wrong.