Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: addgroup_sync androle_sync forcoderd_organization_resource#147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aslilac merged 28 commits intomainfromlilac/idp-sync
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
28 commits
Select commitHold shift + click to select a range
8b73a3e
add organization resource
aslilacNov 5, 2024
69fab48
Merge branch 'main' into lilac/add-organization-resource
aslilacNov 7, 2024
4743b9e
flesh out the organization resource
aslilacNov 7, 2024
435032b
register new resource type + gen
aslilacNov 7, 2024
71dc51b
start with tests from ethan
aslilacNov 8, 2024
3397984
ooooh, I get it, that was correct :^)
aslilacNov 8, 2024
75c0858
hmm
aslilacNov 8, 2024
cc2bb2e
lets do members differently actually
aslilacNov 8, 2024
d23168a
gen
aslilacNov 8, 2024
28b395a
statecheck
aslilacNov 8, 2024
f2d3e3c
feedback
aslilacNov 12, 2024
236c11e
hiyo
aslilacNov 12, 2024
16d10e7
:^)
aslilacNov 12, 2024
f3ff5fb
how about
aslilacNov 12, 2024
a2db0d6
this is probably bad :)
aslilacNov 12, 2024
93f476b
this is probably also bad
aslilacNov 13, 2024
39da842
Merge branch 'main' into lilac/idp-sync
aslilacNov 25, 2024
69ebed9
get the attribute definitions out there
aslilacNov 25, 2024
3bf1734
idek what I'm doing anymore apparently
aslilacNov 26, 2024
a185262
so close...
aslilacNov 26, 2024
03bdf17
pay attention
aslilacNov 27, 2024
753eaa9
it WORKS!
aslilacNov 27, 2024
85891d6
dogs
aslilacNov 27, 2024
68c6ad5
Merge branch 'main' into lilac/idp-sync
aslilacDec 2, 2024
bd73bb4
fix uuid handling
aslilacDec 2, 2024
8f3e1b9
fix container name
aslilacDec 2, 2024
d3f6e2c
do the reads
aslilacDec 3, 2024
33e09a9
check regexp
aslilacDec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletionsdocs/resources/organization.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,12 +23,33 @@ An organization on the Coder deployment

- `description` (String)
- `display_name` (String) Display name of the organization. Defaults to name.
- `group_sync` (Block, Optional) (see [below for nested schema](#nestedblock--group_sync))
- `icon` (String)
- `role_sync` (Block, Optional) (see [below for nested schema](#nestedblock--role_sync))

### Read-Only

- `id` (String) Organization ID

<a id="nestedblock--group_sync"></a>
### Nested Schema for `group_sync`

Optional:

- `auto_create_missing` (Boolean) Controls whether groups will be created if they are missing.
- `field` (String) The claim field that specifies what groups a user should be in.
- `mapping` (Map of List of String) A map from OIDC group name to Coder group ID.
- `regex_filter` (String) A regular expression that will be used to filter the groups returned by the OIDC provider. Any group not matched will be ignored.


<a id="nestedblock--role_sync"></a>
### Nested Schema for `role_sync`

Optional:

- `field` (String) The claim field that specifies what organization roles a user should be given.
- `mapping` (Map of List of String) A map from OIDC group name to Coder organization role.

## Import

Import is supported using the following syntax:
Expand Down
16 changes: 16 additions & 0 deletionsinternal/codersdkvalidator/regex.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
package codersdkvalidator

import (
"regexp"

"github.com/hashicorp/terraform-plugin-framework/schema/validator"
)

func checkRegexp(it string) error {
_, err := regexp.Compile("")
return err
}

func Regexp() validator.String {
return validatorFromFunc(checkRegexp, "value must be a valid regexp")
}
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp