Skip to content

Commit b2c14d5

Browse files
committed
Add two factor methods to the response from the Password Grant.
FusionAuth/fusionauth-issues#1585
1 parent 2c7a686 commit b2c14d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/fusionauth/domain/oauth2/OAuthError.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2019, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2018-2022, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,9 +15,12 @@
1515
*/
1616
package io.fusionauth.domain.oauth2;
1717

18+
import java.util.List;
19+
1820
import com.fasterxml.jackson.annotation.JsonProperty;
1921
import com.inversoft.json.JacksonConstructor;
2022
import com.inversoft.json.ToString;
23+
import io.fusionauth.domain.TwoFactorMethod;
2124

2225
/**
2326
* @author Daniel DeGroff
@@ -35,6 +38,9 @@ public class OAuthError implements OAuthResponse {
3538
@JsonProperty("error_uri")
3639
public String errorURI;
3740

41+
@JsonProperty("two_factor_methods")
42+
public List<TwoFactorMethod> methods;
43+
3844
@JsonProperty("error_reason")
3945
public OAuthErrorReason reason;
4046

0 commit comments

Comments
 (0)