1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/federation/get_signin_token.rb

21 lines
376 B
Ruby
Raw Normal View History

2015-01-20 09:42:23 -05:00
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