mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
21 lines
376 B
Ruby
21 lines
376 B
Ruby
|
module Fog
|
||
|
module AWS
|
||
|
class Federation
|
||
|
class Real
|
||
|
def get_signin_token(session)
|
||
|
|
||
|
request('getSigninToken', CGI.escape(Fog::JSON.encode(session)))
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
def get_signin_token(session)
|
||
|
{
|
||
|
'SigninToken' => Fog::Mock.random_base64(752)
|
||
|
}
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|