mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
feat: add auth_time, prompt, and max_age fields (#4662)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
@@ -134,6 +134,20 @@ func (_c *AuthCodeCreate) SetNillableCodeChallengeMethod(v *string) *AuthCodeCre
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetAuthTime sets the "auth_time" field.
|
||||
func (_c *AuthCodeCreate) SetAuthTime(v time.Time) *AuthCodeCreate {
|
||||
_c.mutation.SetAuthTime(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableAuthTime sets the "auth_time" field if the given value is not nil.
|
||||
func (_c *AuthCodeCreate) SetNillableAuthTime(v *time.Time) *AuthCodeCreate {
|
||||
if v != nil {
|
||||
_c.SetAuthTime(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetID sets the "id" field.
|
||||
func (_c *AuthCodeCreate) SetID(v string) *AuthCodeCreate {
|
||||
_c.mutation.SetID(v)
|
||||
@@ -362,6 +376,10 @@ func (_c *AuthCodeCreate) createSpec() (*AuthCode, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(authcode.FieldCodeChallengeMethod, field.TypeString, value)
|
||||
_node.CodeChallengeMethod = value
|
||||
}
|
||||
if value, ok := _c.mutation.AuthTime(); ok {
|
||||
_spec.SetField(authcode.FieldAuthTime, field.TypeTime, value)
|
||||
_node.AuthTime = value
|
||||
}
|
||||
return _node, _spec
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user