mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 14:46:49 +00:00
removed duplication in the test file.
This commit is contained in:
parent
039bb90d62
commit
c6595ebbf0
@ -148,6 +148,12 @@ object APIUtil {
|
||||
sign(consumer, Some(token), Some(verifier), None)
|
||||
/** sign a request with a consumer and a token, e.g. an OAuth-signed API request */
|
||||
def <@ (consumer: Consumer, token: Token): Request = sign(consumer, Some(token), None, None)
|
||||
def <@ (consumerAndToken: Option[(Consumer,Token)]): Request = {
|
||||
consumerAndToken match {
|
||||
case Some(cAndt) => sign(cAndt._1, Some(cAndt._2), None, None)
|
||||
case _ => rb
|
||||
}
|
||||
}
|
||||
|
||||
/** Sign request by reading Post (<<) and query string parameters */
|
||||
private def sign(consumer: Consumer, token: Option[Token], verifier: Option[String], callback: Option[String]) = {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user