Skip to content

Commit

Permalink
Bump goauthentik.io/api/v3 from 3.2024042.5 to 3.2024042.13 (#522)
Browse files Browse the repository at this point in the history
Bumps [goauthentik.io/api/v3](https://github.com/goauthentik/client-go)
from 3.2024042.5 to 3.2024042.13.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/goauthentik/client-go/releases">goauthentik.io/api/v3's
releases</a>.</em></p>
<blockquote>
<h2>v3.2024042.13</h2>
<p>Update API Client</p>
<h4>What's Changed</h4>
<hr />
<h5><code>GET</code> /admin/system/</h5>
<h6>Return Type:</h6>
<p>Changed response : <strong>200 OK</strong></p>
<ul>
<li>
<p>Changed content type : <code>application/json</code></p>
<ul>
<li>
<p>Changed property <code>runtime</code> (object)</p>
<blockquote>
<p>Get versions</p>
</blockquote>
<p>New required properties:</p>
<ul>
<li><code>openssl_fips_enabled</code></li>
</ul>
<p>New optional properties:</p>
<ul>
<li><code>openssl_fips_mode</code></li>
</ul>
<ul>
<li>
<p>Added property <code>openssl_fips_enabled</code> (boolean)</p>
</li>
<li>
<p>Deleted property <code>openssl_fips_mode</code> (boolean)</p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h5><code>POST</code> /admin/system/</h5>
<h6>Return Type:</h6>
<p>Changed response : <strong>200 OK</strong></p>
<ul>
<li>
<p>Changed content type : <code>application/json</code></p>
<ul>
<li>
<p>Changed property <code>runtime</code> (object)</p>
<blockquote>
<p>Get versions</p>
</blockquote>
<p>New required properties:</p>
<ul>
<li><code>openssl_fips_enabled</code></li>
</ul>
<p>New optional properties:</p>
<ul>
<li><code>openssl_fips_mode</code></li>
</ul>
<ul>
<li>Added property <code>openssl_fips_enabled</code> (boolean)</li>
</ul>
</li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/goauthentik/client-go/commit/d378e1b5fd2fb74d2b7732fccab1b49481bcb05f"><code>d378e1b</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/40a20605cc8965880a0e3466c711744f24b382c3"><code>40a2060</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/abf9af911f65e8f2d8c75fac1a329f27824d2278"><code>abf9af9</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/4f31c143d56e821ec88a12c93feb764f0d4d51c1"><code>4f31c14</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/bcaadcb7467343c02d601a81b02eb894393e4d63"><code>bcaadcb</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/afe11bcf18bd7c00d8284ed9bd9ef092dd326fb3"><code>afe11bc</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/cebb1a4bc6194664634f22b44ed7bf2f04d35d04"><code>cebb1a4</code></a>
Update API Client</li>
<li><a
href="https://github.com/goauthentik/client-go/commit/9ad5dcdaef4f760185923f544325ff44c4665737"><code>9ad5dcd</code></a>
Update API Client</li>
<li>See full diff in <a
href="https://github.com/goauthentik/client-go/compare/v3.2024042.5...v3.2024042.13">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=goauthentik.io/api/v3&package-manager=go_modules&previous-version=3.2024042.5&new-version=3.2024042.13)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
BeryJu authored Jun 20, 2024
2 parents aa6fbe2 + 989fd33 commit f71bb5e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/resources/stage_captcha.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ resource "authentik_stage_captcha" "name" {
### Optional

- `api_url` (String) Defaults to `https://www.recaptcha.net/recaptcha/api/siteverify`.
- `error_on_invalid_score` (Boolean) Defaults to `true`.
- `js_url` (String) Defaults to `https://www.recaptcha.net/recaptcha/api.js`.
- `score_max_threshold` (Number) Defaults to `0.5`.
- `score_min_threshold` (Number) Defaults to `1`.

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-sdk v1.17.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/stretchr/testify v1.9.0
goauthentik.io/api/v3 v3.2024042.5
goauthentik.io/api/v3 v3.2024042.13
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucg
go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg=
go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
goauthentik.io/api/v3 v3.2024042.5 h1:yu42gqhV1b67dmg8vO/YrUW5qCrJvi2IX9Q7NBErFBw=
goauthentik.io/api/v3 v3.2024042.5/go.mod h1:zz+mEZg8rY/7eEjkMGWJ2DnGqk+zqxuybGCGrR2O4Kw=
goauthentik.io/api/v3 v3.2024042.13 h1:eklVXXLH0tV+02puhxzWJZ8l6HhxmeVMYp/M6sdaji8=
goauthentik.io/api/v3 v3.2024042.13/go.mod h1:zz+mEZg8rY/7eEjkMGWJ2DnGqk+zqxuybGCGrR2O4Kw=
golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down
27 changes: 24 additions & 3 deletions internal/provider/resource_stage_captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,33 @@ func resourceStageCaptcha() *schema.Resource {
Required: true,
Sensitive: true,
},
"score_min_threshold": {
Type: schema.TypeFloat,
Optional: true,
Default: 1,
},
"score_max_threshold": {
Type: schema.TypeFloat,
Optional: true,
Default: 0.5,
},
"error_on_invalid_score": {
Type: schema.TypeBool,
Default: true,
Optional: true,
},
},
}
}

func resourceStageCaptchaSchemaToProvider(d *schema.ResourceData) *api.CaptchaStageRequest {
r := api.CaptchaStageRequest{
Name: d.Get("name").(string),
PublicKey: d.Get("public_key").(string),
PrivateKey: d.Get("private_key").(string),
Name: d.Get("name").(string),
PublicKey: d.Get("public_key").(string),
PrivateKey: d.Get("private_key").(string),
ErrorOnInvalidScore: api.PtrBool(d.Get("error_on_invalid_score").(bool)),
ScoreMinThreshold: api.PtrFloat64(d.Get("score_min_threshold").(float64)),
ScoreMaxThreshold: api.PtrFloat64(d.Get("score_max_threshold").(float64)),
}
if v, ok := d.GetOk("js_url"); ok {
r.JsUrl = api.PtrString(v.(string))
Expand Down Expand Up @@ -88,6 +106,9 @@ func resourceStageCaptchaRead(ctx context.Context, d *schema.ResourceData, m int
setWrapper(d, "public_key", res.PublicKey)
setWrapper(d, "api_url", res.GetApiUrl())
setWrapper(d, "js_url", res.GetJsUrl())
setWrapper(d, "error_on_invalid_score", res.GetErrorOnInvalidScore())
setWrapper(d, "score_min_threshold", res.GetScoreMinThreshold())
setWrapper(d, "score_max_threshold", res.GetScoreMaxThreshold())
return diags
}

Expand Down

0 comments on commit f71bb5e

Please sign in to comment.