From 8e75add118ca06086b271c4fa793cad1a9bca359 Mon Sep 17 00:00:00 2001 From: Justin Holmes Date: Thu, 13 Aug 2020 07:21:21 -0500 Subject: [PATCH] Add AuthMethod (amr) group (#516) Co-authored-by: Justin Holmes --- access_group.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/access_group.go b/access_group.go index b7319052897..316c961c148 100644 --- a/access_group.go +++ b/access_group.go @@ -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 {