Skip to content

Commit

Permalink
Add AuthMethod (amr) group (cloudflare#516)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Holmes <[email protected]>
  • Loading branch information
Justin-Holmes and Justin Holmes authored Aug 13, 2020
1 parent 8829567 commit 8e75add
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions access_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,18 @@ type AccessGroupSAML struct {
} `json:"saml"`
}

// AccessGroupAuthMethod is used for managing access by the "amr"
// (Authentication Methods References) identifier. For example, an
// application may want to require that users authenticate using a hardware
// key by setting the "auth_method" to "swk". A list of values are listed
// here: https://tools.ietf.org/html/rfc8176#section-2. Custom values are
// supported as well.
type AccessGroupAuthMethod struct {
AuthMethod struct {
AuthMethod string `json:"auth_method"`
} `json:"auth_method"`
}

// AccessGroupListResponse represents the response from the list
// access group endpoint.
type AccessGroupListResponse struct {
Expand Down

0 comments on commit 8e75add

Please sign in to comment.