mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-13 22:03:33 +00:00
SEC-1595: Added extra constructor to OpenID4JavaConsumer which takes a ConsumerManager to allow a version compatible with GAE to be injected.
This commit is contained in:
parent
337477de6a
commit
265cdaf2a6
@ -57,8 +57,7 @@ public class OpenID4JavaConsumer implements OpenIDConsumer {
|
||||
//~ Constructors ===================================================================================================
|
||||
|
||||
public OpenID4JavaConsumer() throws ConsumerException {
|
||||
this.consumerManager = new ConsumerManager();
|
||||
this.attributesToFetchFactory = new NullAxFetchListFactory();
|
||||
this(new ConsumerManager(), new NullAxFetchListFactory());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -83,7 +82,12 @@ public class OpenID4JavaConsumer implements OpenIDConsumer {
|
||||
}
|
||||
|
||||
public OpenID4JavaConsumer(AxFetchListFactory attributesToFetchFactory) throws ConsumerException {
|
||||
this.consumerManager = new ConsumerManager();
|
||||
this(new ConsumerManager(), attributesToFetchFactory);
|
||||
}
|
||||
|
||||
public OpenID4JavaConsumer(ConsumerManager consumerManager, AxFetchListFactory attributesToFetchFactory)
|
||||
throws ConsumerException {
|
||||
this.consumerManager = consumerManager;
|
||||
this.attributesToFetchFactory = attributesToFetchFactory;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user