Skip to content

Commit

Permalink
update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Jan 31, 2025
1 parent 46383a7 commit c29ce3d
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 170 deletions.
1 change: 0 additions & 1 deletion internal/client-go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand Down
103 changes: 26 additions & 77 deletions internal/client-go/model_submit_fedcm_token_body.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 26 additions & 77 deletions internal/httpclient/model_submit_fedcm_token_body.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions selfservice/strategy/oidc/fedcm/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,20 @@ type GetParametersResponse struct {
// default: errorGeneric

type SubmitFedcmTokenBody struct {
// The provider to log in with.
Provider string `json:"provider"`

// Token contains the result of `navigator.credentials.get`.
//
// required: true
Token string `json:"token"`

// Nonce is the nonce, used when generating the IDToken. If the provider supports
// nonce validation, the nonce will be validated against this value and required.
// Nonce is the nonce that was used in the `navigator.credentials.get` call. If
// specified, it must match the `nonce` claim in the token.
//
// required: false
Nonce string `json:"nonce"`

// CSRFToken is the anti-CSRF token.
//
// required: true
CSRFToken string `json:"csrf_token"`
}

Expand Down
10 changes: 5 additions & 5 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,18 +463,18 @@
"type": "string"
},
"nonce": {
"description": "Nonce is the nonce, used when generating the IDToken. If the provider supports\nnonce validation, the nonce will be validated against this value and required.",
"type": "string"
},
"provider": {
"description": "The provider to log in with.",
"description": "Nonce is the nonce that was used in the `navigator.credentials.get` call. If\nspecified, it must match the `nonce` claim in the token.",
"type": "string"
},
"token": {
"description": "Token contains the result of `navigator.credentials.get`.",
"type": "string"
}
},
"required": [
"token",
"csrf_token"
],
"type": "object"
},
"Time": {
Expand Down
Loading

0 comments on commit c29ce3d

Please sign in to comment.