Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oxcore : added ResourceOwnerPasswordCredentialType custom interface d…
…efinition for RS PC interception. GluuFederation/oxAuth#230
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ava/org/xdi/model/custom/script/type/owner/DummyResourceOwnerPasswordCredentialsType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.xdi.model.custom.script.type.owner; | ||
|
||
import org.xdi.model.SimpleCustomProperty; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author Yuriy Zabrovarnyy | ||
*/ | ||
public class DummyResourceOwnerPasswordCredentialsType implements ResourceOwnerPasswordCredentialsType { | ||
@Override | ||
public boolean init(Map<String, SimpleCustomProperty> configurationAttributes) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean destroy(Map<String, SimpleCustomProperty> configurationAttributes) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public int getApiVersion() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
public boolean authenticate(Object context) { | ||
return false; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ain/java/org/xdi/model/custom/script/type/owner/ResourceOwnerPasswordCredentialsType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.xdi.model.custom.script.type.owner; | ||
|
||
import org.xdi.model.custom.script.type.BaseExternalType; | ||
|
||
/** | ||
* @author Yuriy Zabrovarnyy | ||
*/ | ||
public interface ResourceOwnerPasswordCredentialsType extends BaseExternalType { | ||
|
||
boolean authenticate(Object context); | ||
} |