Skip to content

Commit c24ceea

Browse files
authored
Bump goauthentik.io/api/v3 from 3.2023103.2 to 3.2023103.3 (#437)
Bumps [goauthentik.io/api/v3](https://github.com/goauthentik/client-go) from 3.2023103.2 to 3.2023103.3. <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.2023103.3</h2> <h4>What's Changed</h4> <hr /> <h5><code>GET</code> /stages/authenticator/totp/{stage_uuid}/</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>Changed property <code>digits</code> (integer -&gt; string) <blockquote> <ul> <li><code>6</code> - 6 digits, widely compatible</li> <li><code>8</code> - 8 digits, not compatible with apps like Google Authenticator</li> </ul> </blockquote> </li> </ul> </li> </ul> <h5><code>PUT</code> /stages/authenticator/totp/{stage_uuid}/</h5> <h6>Request:</h6> <p>Changed content type : <code>application/json</code></p> <ul> <li>Changed property <code>digits</code> (integer -&gt; string) <blockquote> <ul> <li><code>6</code> - 6 digits, widely compatible</li> <li><code>8</code> - 8 digits, not compatible with apps like Google Authenticator</li> </ul> </blockquote> </li> </ul> <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>Changed property <code>digits</code> (integer -&gt; string) <blockquote> <ul> <li><code>6</code> - 6 digits, widely compatible</li> <li><code>8</code> - 8 digits, not compatible with apps like Google Authenticator</li> </ul> </blockquote> </li> </ul> </li> </ul> <h5><code>PATCH</code> /stages/authenticator/totp/{stage_uuid}/</h5> <h6>Request:</h6> <p>Changed content type : <code>application/json</code></p> <ul> <li>Changed property <code>digits</code> (integer -&gt; string) <blockquote> <ul> <li><code>6</code> - 6 digits, widely compatible</li> </ul> </blockquote> </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/21492f50643baa9ecdbe416ddf641ee8c906e111"><code>21492f5</code></a> Update API Client</li> <li>See full diff in <a href="https://github.com/goauthentik/client-go/compare/v3.2023103.2...v3.2023103.3">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.2023103.2&new-version=3.2023103.3)](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>
2 parents 4ce77e9 + 18a4a53 commit c24ceea

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/hashicorp/terraform-plugin-sdk v1.17.2
1010
github.com/hashicorp/terraform-plugin-sdk/v2 v2.30.0
1111
github.com/stretchr/testify v1.8.4
12-
goauthentik.io/api/v3 v3.2023103.2
12+
goauthentik.io/api/v3 v3.2023103.3
1313
)
1414

1515
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ go.opentelemetry.io/otel/sdk v1.14.0 h1:PDCppFRDq8A1jL9v6KMI6dYesaq+DFcDZvjsoGvx
538538
go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM=
539539
go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M=
540540
go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8=
541-
goauthentik.io/api/v3 v3.2023103.2 h1:k3GOGc5vVfxkS8+a8KjQaqAOPfpCqDYLEIjKEewrxwo=
542-
goauthentik.io/api/v3 v3.2023103.2/go.mod h1:zz+mEZg8rY/7eEjkMGWJ2DnGqk+zqxuybGCGrR2O4Kw=
541+
goauthentik.io/api/v3 v3.2023103.3 h1:houXwjWjQFExbEl+C1jeXCVLOV6Qqrnayl7OpqUUi2g=
542+
goauthentik.io/api/v3 v3.2023103.3/go.mod h1:zz+mEZg8rY/7eEjkMGWJ2DnGqk+zqxuybGCGrR2O4Kw=
543543
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
544544
golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
545545
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

internal/provider/resource_stage_authenticator_totp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package provider
22

33
import (
44
"context"
5+
"strconv"
56

67
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
78
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
@@ -42,7 +43,7 @@ func resourceStageAuthenticatorTOTP() *schema.Resource {
4243
func resourceStageAuthenticatorTOTPSchemaToProvider(d *schema.ResourceData) *api.AuthenticatorTOTPStageRequest {
4344
r := api.AuthenticatorTOTPStageRequest{
4445
Name: d.Get("name").(string),
45-
Digits: *api.DigitsEnum((d.Get("digits").(int))).Ptr(),
46+
Digits: *api.DigitsEnum(strconv.Itoa(d.Get("digits").(int))).Ptr(),
4647
}
4748

4849
if fn, fnSet := d.GetOk("friendly_name"); fnSet {

0 commit comments

Comments
 (0)